Deploying Flutter Web to Firebase Hosting with GitHub Actions CI/CD
Why Firebase Hosting?
Option Pros Cons
Firebase Hosting Free, auto-HTTPS, CDN, easy GitHub Actions Google dependency
Vercel Feature-rich Flutter-specific config is complex
GitHub Pages Free Manual HTTPS setup
For Flutter Web, Firebase Hosting is the fastest path to production.
1. Firebase CLI Setup
npm install -g firebase-tools firebase login cd your-flutter-project firebase init hosting
Answer firebase init hosting :
Public directory: build/web
Configure as SPA: Yes
Automatic builds via GitHub: No (we'll configure manually)
2.…