-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
35 lines (35 loc) · 783 Bytes
/
Copy pathamplify.yml
File metadata and controls
35 lines (35 loc) · 783 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
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
build:
commands:
- npm run build
artifacts:
baseDirectory: dist
files:
- '**/*'
cache:
paths:
- .npm/**/*
- node_modules/**/*
customHeaders:
- pattern: '**/*'
headers:
- key: Cache-Control
value: max-age=0,no-cache,no-store,must-revalidate
redirects:
- source: /bestellstatus/index.html
target: /bestellstatus/index.html
status: 200
- source: /bestellstatus/<*>
target: /bestellstatus/index.html
status: 200
- source: /<*>
target: /bestellstatus/index.html
status: 200