Firebase
🍱Framework
cloud
Firebase hosting
- In Firebase online console create hosting
- In project root folder run
firebase init - Choose preview channels in firebase console
- Setup a script (e.g.
deploy_firebase.sh):
#!/bin/sh
set -e
flutter clean
flutter build web --web-renderer canvaskit
patch -p0 < patches/sw_fix_offline_download.patch
firebase hosting:channel:deploy beta
echo "Success!"and run it to publish new build to firebase
Remote config
Discuss on Twitter ● Improve this article: Edit on GitHub