Template for hosting Webflow sites for free with Firebase using automated scripts.
-
Replace placeholders in configuration files:
- In
.firebaserc: Replace${FIREBASE_PROJECT_ID}with your Firebase project ID - In
package.json: Replace${WEBFLOW_SITE_ID}with your Webflow site ID (found in your site URL:https://[site-id].webflow.io)
- In
-
Install Firebase CLI if not already installed:
npm install -g firebase-tools
-
Login to Firebase:
firebase login
-
Initialize the project:
npm install
npm run pull-webflow: Pulls the latest version of your site from Webflownpm run push-github: Pushes changes to GitHub with "Sync with webflow" messagenpm run sync: Runs pull-webflow, push-github, and firebase deploy in sequence
- There is no automated way to import local changes back into Webflow
- Make changes in Webflow first, then sync them to this repo
- Use this repo primarily for:
- Code inspection
- Version control
- Firebase hosting
- Backup purposes
You can modify the scripts in package.json to add additional functionality or change the default commit messages as needed.