-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
36 lines (36 loc) · 936 Bytes
/
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
backend:
phases:
preBuild:
commands:
- cd frontend
# print the file to the terminal (for debugging)
- cat amplify/backend/types/amplify-dependent-resources-ref.d.ts
# - npm install -g @aws-amplify/cli
# - npm i aws-amplify
build:
commands:
- "# Execute Amplify CLI with the helper script"
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
# don't need cd frontend since already in the directory from the backend build
# - cd frontend
- nvm use 14
- npm ci
# IMPORTANT - Please verify your build commands
build:
commands:
- nvm use 14
- npm run build
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: ./frontend/build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- "!node_modules/.cache"