I've deployed flutter project on vercel from github, but after deployment it shows:
404: NOT_FOUND Code: NOT_FOUND.
Framework presets: Others
Build log:
15:28:18.542 Cloning github.com/Usman167/UPKeepApp-FluxStore- (Branch: master, Commit: e331f69) 15:28:20.977 Cloning completed: 2.435s
15:28:21.169 Analyzing source code...
15:28:26.899 Uploading build outputs...
15:28:26.913 Deploying build outputs...
15:28:33.974 Done with "."

You can change your Vercel project settings to build and deploy a Flutter Web project.
Otherflutter/bin/flutter build web --releasebuild/webif cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git; fi && ls && flutter/bin/flutter doctor && flutter/bin/flutter clean && flutter/bin/flutter config --enable-web
Example build log showing a successful Flutter deploy

run the command in the root of project:flutter build web

create new repository in github and upload the web folder to github

and follow the procedure in below figure in vercel

https://githubactionss.vercel.app/#/ https://github.com/lavahasif/githubaction
Just Create Flutter template project(test)
flutter create -t skeleton my_app
verify the web folder (enable web) exist other wise vercel show error
upload the entire project to github
do like this

flutter/bin/flutter build web --releasebuild/webif cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git; fi && ls && flutter/bin/flutter doctor && flutter/bin/flutter clean && flutter/bin/flutter config --enable-weband Finally just deploy the link like this https://web-my-app.vercel.app/#/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With