Files
Filamenteka/amplify.yml
DaX 62608ebb43 Fix Next.js standalone build for Amplify WEB_COMPUTE
- Set output to standalone in next.config.js
- Update build artifacts to use .next/standalone
- Copy static files to standalone directory
- Remove invalid serverActions config
2025-06-19 00:45:44 +02:00

22 lines
518 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
- cp -r public .next/standalone/
- cp -r .next/static .next/standalone/.next/
artifacts:
baseDirectory: .next/standalone
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*