-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathamplify.yml
32 lines (32 loc) · 960 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
30
31
32
version: 1
frontend:
phases:
preBuild:
commands:
- nvm install 18.18.0
- nvm use 18.18.0
# Clean and fresh install
- rm -rf node_modules
- rm -f package-lock.json
# Install TypeScript and types globally
- npm install -g typescript @types/node @types/react @types/react-dom
# Install project dependencies
- npm install
# Verify TypeScript installation
- tsc --version
build:
commands:
- |
echo "Environment Check:"
echo "NODE_ENV: $NODE_ENV"
echo "EMAIL_USER exists: $(if [ ! -z "$EMAIL_USER" ]; then echo "YES"; else echo "NO"; fi)"
echo "EMAIL_PASS exists: $(if [ ! -z "$EMAIL_PASS" ]; then echo "YES"; else echo "NO"; fi)"
- echo "Starting build process..."
- npm run build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- node_modules/**/*