-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathamplify.yml
More file actions
29 lines (29 loc) · 800 Bytes
/
amplify.yml
File metadata and controls
29 lines (29 loc) · 800 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:
- frontend:
phases:
preBuild:
commands:
- yarn install
# activate swap to avoid OOM https://github.com/aws-amplify/amplify-hosting/issues/654
- export NODE_OPTIONS=--max-old-space-size=16384
- dd if=/dev/zero of=swapfile bs=1K count=6M
- chmod 600 swapfile
- mkswap swapfile
- swapon swapfile
- swapon -s
build:
commands:
- yarn run build-api-docs
- ../gradlew --stop
- yarn run build
artifacts:
baseDirectory: /dist
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- ~/.m2/repository
- ~/.gradle/caches
appRoot: docs