1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
You will need to build your backend and frontend. For my amplify backend I'm using typescript so I need to install typescript in the preBuild phase.
For the frontend you will need to install flutter and then build your app. My build command is in a Makefile, but something like flutter build web --release
should work
version: 1
backend:
phases:
preBuild:
commands:
- npm install
- npm install -g typescript
build:
commands:
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- npm install -g gulp
- yum install -y xz
- curl -LO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.2-stable.tar.xz
- tar xf flutter_linux_3.16.2-stable.tar.xz -C /usr/local
- export PATH="/usr/local/flutter/bin:$PATH"
- git config --global --add safe.directory /usr/local/flutter
build:
commands:
- make build
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: build/web/
files:
- '**/*'
cache:
paths:
- node_modules/**/*
답변함 4달 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전