[firebase_hosting] Wasm is not used in Flutter Web App #13162
-
ProblemWasm is not used when deploying to Firebase Hosting and I do not understand why. AnalysisDeploying the same flutter code locally works with Wasm-active. Steps to reproduce
What am I missing (wrong CORS configuration for example)?
My firebase.json in my project folder looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you run the firebase deploy cmd in flutter. It runs flutter build web --release automatically before deployment. So as a result it rebuilds the project in release mode without the wasm support. |
Beta Was this translation helpful? Give feedback.
to avoid the auto build while
firebase deploy
you should set the public path in your firebase.json file.changing
"source": "."
to"public": "build/web"
the automatic build will stop onfirebase deploy