-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
24 lines (24 loc) · 740 Bytes
/
Copy pathamplify.yml
File metadata and controls
24 lines (24 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci --cache .npm --prefer-offline
build:
commands:
- echo "MONGODB_URI=MONGODB_URI" >> .env
- echo "NEXTAUTH_SECRET=NEXTAUTH_SECRET" >> .env
- echo "NEXTAUTH_URL=NEXTAUTH_URL" >> .env
- echo "SUPPORT_MAIL=SUPPORT_MAIL" >> .env
- echo "SUPPORT_PASS=SUPPORT_PASS" >> .env
- echo "OPENAI_API_KEY=OPENAI_API_KEY" >> .env
- env | grep -e MONGODB_URI -e NEXTAUTH_SECRET -e NEXTAUTH_URL -e SUPPORT_MAIL -e SUPPORT_PASS -e OPENAI_API_KEY >> .env.production
- npm run build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- .next/cache/**/*
- .npm/**/*