- Add .env.production for Amplify environment variable mapping - Update artifacts configuration for WEB_COMPUTE platform - Add explicit nodejs runtime for API route - Enable serverActions in Next.js config - Add debugging output for environment variables 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
504 B
YAML
24 lines
504 B
YAML
version: 1
|
|
frontend:
|
|
phases:
|
|
preBuild:
|
|
commands:
|
|
- npm ci
|
|
- npm run security:check
|
|
# Print env vars for debugging (without exposing values)
|
|
- env | grep CONFLUENCE | sed 's/=.*/=***/'
|
|
build:
|
|
commands:
|
|
- npm run build
|
|
artifacts:
|
|
baseDirectory: ./
|
|
files:
|
|
- .next/**/*
|
|
- node_modules/**/*
|
|
- package.json
|
|
- next.config.js
|
|
- public/**/*
|
|
cache:
|
|
paths:
|
|
- node_modules/**/*
|
|
- .next/cache/**/* |