feat: Refactor Amplify deployment configuration for monorepo structure

This commit is contained in:
2024-11-24 15:10:05 +02:00
parent 0e5035aab5
commit 29e8d3d133
2 changed files with 8 additions and 7 deletions

View File

@@ -3,22 +3,23 @@ frontend:
phases:
preBuild:
commands:
- cd tasker-client
- npm ci
build:
commands:
- cd tasker-client
- npm run build
artifacts:
baseDirectory: tasker-client/.next
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- tasker-client/node_modules/**/*
- node_modules/**/*
- .next/cache/**/*
- .npm/**/*
env:
variables:
# To be populated by GitHub Actions
AMPLIFY_MONOREPO_APP_ROOT: tasker-client
AMPLIFY_DIFF_DEPLOY: false
NEXT_PUBLIC_API_BASE_URL: ""
NEXT_PUBLIC_COGNITO_USER_POOL_ID: ""
NEXT_PUBLIC_COGNITO_USER_POOL_CLIENT_ID: ""