Files
Filamenteka/amplify.yml
DaX 1a96e5eef6 Switch to static export with build-time data fetching
- Change from server-side rendering to static export
- Fetch data at build time and save as JSON
- Remove API routes and tests, use static JSON file
- Switch back to WEB platform from WEB_COMPUTE
- Update build test for static export
- Exclude out directory from security scan
- Much simpler and more reliable approach
2025-06-19 01:13:15 +02:00

21 lines
451 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:
- npx tsx scripts/fetch-data.js
- npm run build
artifacts:
baseDirectory: out
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*