-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamplify.yml
32 lines (32 loc) · 898 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: 2
backend:
phases:
build:
commands:
# Install Amplify CLI globally
- npm install -g @aws-amplify/cli
# Pull the latest backend environment with a timeout
- "timeout 300 amplify pull --appId $AWS_APP_ID --envName $AWS_BRANCH --yes"
# Push backend changes with a timeout and verbose logging
- "timeout 600 amplify push --yes --verbose"
frontend:
phases:
preBuild:
commands:
# Install Yarn globally (if not already installed)
- npm install -g yarn
# Install frontend dependencies
- yarn install --frozen-lockfile --cache-folder .yarn-cache
build:
commands:
# Build the frontend using Yarn
- yarn build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- .next/cache/**/*
- .yarn-cache/**/*
- node_modules/**/*