diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 0000000..9e0ff60 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,22 @@ +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/**/*