- Build app.
$ flutter clean
$ flutter build web --web-renderer html --release
- Create netlify.toml in build/web.
[[redirects]]
from = "/.well-known/assetlinks.json"
to = "/assets/well-known/assetlinks.json"
status = 200
force = true # COMMENT: ensure that we always redirect
headers = {X-From = "Netlify"}
- Draw and drop build/web into Netlify's Deploys tab.