forked from aws-samples/aws-serverless-shopping-cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
29 lines (29 loc) · 789 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
version: 1
env:
variables:
ORIGIN: https://${AWS_BRANCH//\//-}.${AWS_APP_ID}.amplifyapp.com
STACKNAME: amplify-aws-serverless-shopping-cart
backend:
phases:
preBuild:
commands:
- curl "https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip" -L -o "aws-sam-cli.zip"
- unzip aws-sam-cli.zip -d sam-installation
- ./sam-installation/install
- pip3 install -U boto3
build:
commands:
- make backend
frontend:
phases:
# IMPORTANT - Please verify your build commands
build:
commands:
- make frontend-build
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: /frontend/dist
files:
- '**/*'
cache:
paths: []