Skip to content

Commit f4ba8d3

Browse files
committed
fix(webapp): gate bedrock head-start on AWS_REGION only
1 parent 66cfdfb commit f4ba8d3

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

apps/webapp/app/env.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ const EnvironmentSchema = z
175175
// DASHBOARD_AGENT_MODEL_PROVIDER=bedrock; default path stays Anthropic). The
176176
// provider resolves credentials itself, so only the region is read here.
177177
AWS_REGION: z.string().optional(),
178-
AWS_DEFAULT_REGION: z.string().optional(),
179178
AWS_ACCESS_KEY_ID: z.string().optional(),
180179
AWS_SECRET_ACCESS_KEY: z.string().optional(),
181180
AWS_SESSION_TOKEN: z.string().optional(),

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.dashboard-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
332332
const repoSnapshot = await resolveDashboardAgentRepoSnapshot(project.id);
333333
const headStarted =
334334
dashboardAgentProvider() === "bedrock"
335-
? Boolean(env.AWS_REGION || env.AWS_DEFAULT_REGION)
335+
? Boolean(env.AWS_REGION)
336336
: Boolean(env.ANTHROPIC_API_KEY);
337337

338338
// The lookups and the mint all run before the chat row exists, so a failure here can't

0 commit comments

Comments
 (0)