This guide explains how to deploy the FitForge application to Firebase Hosting as an alternative to Vercel.
- Firebase account
- Firebase CLI installed (
npm install -g firebase-tools)
-
Login to Firebase
firebase login -
Create a Firebase Project
- Go to the Firebase Console
- Create a new project named "fitforge-app" (or your preferred name)
- Note the project ID
-
Update .firebaserc
- Open
.firebasercand ensure the project ID matches your Firebase project:
{ "projects": { "default": "YOUR_PROJECT_ID" } } - Open
npm run deploy:firebase
This script will:
- Build your project
- Deploy to Firebase Hosting
npm run build
firebase deploy
- If you encounter permission issues, ensure you're logged in with the correct Firebase account
- If deployment fails, check the Firebase console for more detailed error messages
- For build errors, review the build logs and fix any issues before attempting deployment again
Both deployment options are configured in this project. To deploy to:
- Vercel: Use your existing Vercel workflow
- Firebase: Use the commands in this guide
This dual-deployment setup provides redundancy in case one platform experiences issues.