forked from alexgoni/codeit-resources-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
38 lines (38 loc) · 991 Bytes
/
amplify.yml
File metadata and controls
38 lines (38 loc) · 991 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
30
31
32
33
34
35
36
37
38
version: 1
backend:
phases:
preBuild:
commands:
- npm install -g pnpm
- pnpm install --prefer-offline
build:
commands:
- pnpm install --frozen-lockfile --prefer-offline
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
artifacts:
baseDirectory: build
files:
- amplify_outputs.json
cache:
paths:
- node_modules/**/*
frontend:
phases:
preBuild:
commands:
- touch .env.production
- echo "NEXTAUTH_URL=\"${NEXTAUTH_URL}\"" >> .env.production
- echo "NEXTAUTH_SECRET=\"${NEXTAUTH_SECRET}\"" >> .env.production
- echo "GOOGLE_CLIENT_ID=\"${GOOGLE_CLIENT_ID}\"" >> .env.production
- echo "GOOGLE_CLIENT_SECRET=\"${GOOGLE_CLIENT_SECRET}\"" >> .env.production
build:
commands:
- pnpm run build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- .next/cache/**/*
- node_modules/**/*