forked from opatel04/PolicyDiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
30 lines (29 loc) · 781 Bytes
/
Copy pathamplify.yml
File metadata and controls
30 lines (29 loc) · 781 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
25
26
27
28
29
version: 1
applications:
- appRoot: frontend
frontend:
phases:
preBuild:
commands:
- npm ci
- |
cat > .env.production << EOF
AUTH0_SECRET=${AUTH0_SECRET}
AUTH0_DOMAIN=${AUTH0_DOMAIN}
AUTH0_CLIENT_ID=${AUTH0_CLIENT_ID}
AUTH0_CLIENT_SECRET=${AUTH0_CLIENT_SECRET}
AUTH0_AUDIENCE=${AUTH0_AUDIENCE}
APP_BASE_URL=${APP_BASE_URL}
NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
EOF
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*