- Add build-time data fetching from Confluence - Create build-data.js script to fetch and save data at build time - Update App.tsx to use static JSON in production, API in development - Install tsx for running TypeScript build scripts - Configure Amplify to fetch data during build process - Add public directory configuration to Vite This fixes the white page error by providing data at build time instead of runtime. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
277 B
YAML
17 lines
277 B
YAML
version: 1
|
|
frontend:
|
|
phases:
|
|
preBuild:
|
|
commands:
|
|
- npm ci
|
|
build:
|
|
commands:
|
|
- npx tsx scripts/build-data.js
|
|
- npm run build
|
|
artifacts:
|
|
baseDirectory: dist
|
|
files:
|
|
- '**/*'
|
|
cache:
|
|
paths:
|
|
- node_modules/**/* |