-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamplify.yml
More file actions
33 lines (32 loc) · 1.48 KB
/
Copy pathamplify.yml
File metadata and controls
33 lines (32 loc) · 1.48 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
version: 2
frontend:
phases:
preBuild:
commands:
- corepack enable
- corepack prepare pnpm@latest --activate
- pnpm install --frozen-lockfile --ignore-scripts
- export NODE_OPTIONS="--max-old-space-size=5632"
- export GENERATE_SOURCEMAP=false
- env | grep -E '^(GOOGLE_MAPS_KEY|GOOGLE_MAPS_CLIENT_KEY)' >> .env.production
build:
commands:
- pnpm next build --turbo
- find .next -name "*.map" -type f -delete
- find .next/standalone -name "*.md" -type f -delete
- find .next/standalone -name "README*" -type f -delete
- find .next/standalone/node_modules -name "*.md" -type f -delete 2>/dev/null || true
- find .next/standalone/node_modules -name "*.map" -type f -delete 2>/dev/null || true
- find .next/standalone/node_modules -name "LICENSE*" -type f -delete 2>/dev/null || true
- find .next/standalone/node_modules -name "CHANGELOG*" -type f -delete 2>/dev/null || true
- find .next/standalone/node_modules -name "README*" -type f -delete 2>/dev/null || true
artifacts:
baseDirectory: .next
files:
- "**/*"
# Caching disabled since Amplify has no cache access
# cache:
# paths:
# - .pnpm-store/**/*
# - node_modules/**/*
# - .next/cache/**/*