forked from gaiin-platform/amplify-genai-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
amplify.yml
36 lines (35 loc) · 1.33 KB
/
amplify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: 1
frontend:
phases:
preBuild:
commands:
- nvm install 20 # Install Node.js version 18
- nvm use 20 # Use Node.js version 18
- env | grep -e OPENAI_API_HOST >> .env.production
- env | grep -e OPENAI_API_TYPE >> .env.production
- env | grep -e OPENAI_API_VERSION >> .env.production
- env | grep -e AZURE_DEPLOYMENT_ID >> .env.
- env | grep -e AZURE_API_NAME >> .env.production
- env | grep -e AUTH0_AUDIENCE >> .env.production
- env | grep -e AUTH0_SCOPE >> .env.production
- env | grep -e STATE_API_URL >> .env.production
- env | grep -e SHARE_API_URL >> .env.production
- env | grep -e AVAILABLE_MODELS >> .env.production
- env | grep -e DEFAULT_MODEL >> .env.production
- env | grep -e AUTH0_SECRET >> .env.production
- env | grep -e AUTH0_BASE_URL >> .env.production
- env | grep -e AUTH0_ISSUER_BASE_URL >> .env.production
- env | grep -e AUTH0_CLIENT_ID >> .env.production
- env | grep -e AUTH0_CLIENT_SECRET >> .env.production
- env | grep -e NEXT_PUBLIC_ >> .env.production
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*