-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathamplify.yml
More file actions
31 lines (31 loc) · 963 Bytes
/
amplify.yml
File metadata and controls
31 lines (31 loc) · 963 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
version: 1
frontend:
phases:
preBuild:
commands:
- nvm use 20
- echo "Starting preBuild phase..."
- npm ci --legacy-peer-deps --include=dev
- echo "Checking current Tailwind installation:"
- npm list tailwindcss || true
- echo "Checking if tailwind.config.js exists:"
- ls -la tailwind.config.js
- echo "Checking if postcss.config.js exists:"
- ls -la postcss.config.js
- echo "Dependencies installed successfully"
build:
commands:
- echo "Starting build phase..."
- echo "Generating build version..."
- echo "export const BUILD_VERSION = '$(date +"%Y%m%d-%H%M")';" > src/lib/build-version.ts
- cat src/lib/build-version.ts
- npm run build
- echo "Build completed successfully"
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*