-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
36 lines (36 loc) · 1.17 KB
/
Copy pathamplify.yml
File metadata and controls
36 lines (36 loc) · 1.17 KB
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
applications:
- backend:
phases:
preBuild:
commands:
- nvm install 22
- nvm use 22
- node -v
- curl -fsSL https://viteplus.dev/install.sh | bash
- export PATH="$HOME/.vite-plus/bin:$PATH"
build:
commands:
- corepack enable
- pnpm -v
- pnpm install --frozen-lockfile
- pnpm rebuild esbuild
- pnpm exec ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
preBuild:
commands:
- vp install
build:
commands:
- free -h
- (while true; do echo === $(date -u +%H:%M:%S) === && free -h | grep Mem; sleep 1; done) & echo $! > /tmp/mem_monitor.pid
- NODE_OPTIONS="--max-old-space-size=4096" vp run --filter amplify-adapter-tanstack-start --filter todo-app build
- kill $(cat /tmp/mem_monitor.pid) 2>/dev/null || true
- free -h
artifacts:
baseDirectory: .amplify-hosting
files:
- "**/*"
buildPath: examples/todo-app
appRoot: examples/todo-app