From 95aa4b8a5602aece1b2b4d95cb9e7567e3a90cc5 Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Mon, 8 Dec 2025 11:39:32 +0900 Subject: [PATCH] chore: remove Amplify integration (#164) Co-authored-by: dayuan.jiang --- amplify.yml | 22 ---------------------- docs/ai-providers.md | 2 +- lib/ai-providers.ts | 2 +- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 amplify.yml diff --git a/amplify.yml b/amplify.yml deleted file mode 100644 index 9e0ff60..0000000 --- a/amplify.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 1 -frontend: - phases: - preBuild: - commands: - - npm ci --cache .npm --prefer-offline - build: - commands: - # Write env vars to .env.production for Next.js SSR runtime - - env | grep -e AI_MODEL >> .env.production - - env | grep -e AI_PROVIDER >> .env.production - - env | grep -e OPENAI_API_KEY >> .env.production - - env | grep -e NEXT_PUBLIC_ >> .env.production - - npm run build - artifacts: - baseDirectory: .next - files: - - '**/*' - cache: - paths: - - .next/cache/**/* - - .npm/**/* diff --git a/docs/ai-providers.md b/docs/ai-providers.md index aa1ec7e..14e0c92 100644 --- a/docs/ai-providers.md +++ b/docs/ai-providers.md @@ -98,7 +98,7 @@ AWS_SECRET_ACCESS_KEY=your_secret_access_key AI_MODEL=anthropic.claude-sonnet-4-5-20250514-v1:0 ``` -Note: On AWS (Amplify, Lambda, EC2 with IAM role), credentials are automatically obtained from the IAM role. +Note: On AWS (Lambda, EC2 with IAM role), credentials are automatically obtained from the IAM role. ### OpenRouter diff --git a/lib/ai-providers.ts b/lib/ai-providers.ts index e557be3..04778f4 100644 --- a/lib/ai-providers.ts +++ b/lib/ai-providers.ts @@ -166,7 +166,7 @@ export function getAIModel(): ModelConfig { switch (provider) { case "bedrock": { - // Use credential provider chain for IAM role support (Amplify, Lambda, etc.) + // Use credential provider chain for IAM role support (Lambda, EC2, etc.) // Falls back to env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) for local dev const bedrockProvider = createAmazonBedrock({ region: process.env.AWS_REGION || "us-west-2",