Open pedy711 opened 1 month ago
Hello @pedy711, thanks for creating this issue. npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --outputs-format dart --outputs-out-dir lib
this line from below should fix it :)
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --outputs-format dart --outputs-out-dir lib
frontend:
phases:
preBuild:
commands:
- echo "Installing Flutter SDK"
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- export PATH="$PATH:$(pwd)/flutter/bin"
- flutter config --no-analytics
- flutter doctor
build:
commands:
- echo "Installing dependencies"
- flutter pub get
- echo "Building Flutter web application with WASM support"
- flutter build web
artifacts:
baseDirectory: build/web
files:
- '**/*'
cache:
paths:
- flutter/.pub-cache
Hi Salih, thanks for sharing your "amplify.yml" file. It deploys successfully now!
I added this file to my frontend root project and added it to git. Do you think this is a good practice?
Hi Salih, could you please help me out with amplify_outputs.json file and amplify.yml file? Would be great if you post your "amplify.yml" file that you used in your AWS Amplify project. I get the following error because Amplify doesn't generate the "amplify_outputs.json" file in the backend tab.