Menu

Deploying Flutter Web to Firebase Hosting with GitHub Actions CI/CD

DEV Community: firebase·kanta13jp1·7 months ago
#oiopP9Zd
#dev#firebase#ci#buildinpublic#webdev
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.