forked from aws-amplify/amplify-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
26 lines (26 loc) · 802 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
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- rm -rf node_modules
- nvm install 16.13 # NodeJS 16.13+ is the latest version that Amplify Hosting supports
- nvm use 16
- node -v
- export FLUTTER_HOME=${HOME}/sdks/flutter
- git clone -b stable --depth 1 https://github.com/flutter/flutter.git ${FLUTTER_HOME}
- export PATH="$PATH:${FLUTTER_HOME}/bin"
- (cd .. && yarn install && yarn build)
build:
commands:
- nvm install 16.13
- nvm use 16
- node -v
- yarn flutter:build
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'
appRoot: docs