Skip to content

Instantly share code, notes, and snippets.

@toddwseattle
Created April 1, 2025 00:42
Show Gist options
  • Save toddwseattle/c84e0add7d90ae8a29e5aed337756246 to your computer and use it in GitHub Desktop.
Save toddwseattle/c84e0add7d90ae8a29e5aed337756246 to your computer and use it in GitHub Desktop.
.env.local template for firebase projects in vite 2025
# Firebase Configuration
# Copy this file to .env.local and fill in your Firebase project details
# IMPORTANT: Never commit your actual .env.local file to version control!
# Firebase Web App Configuration
VITE_FIREBASE_API_KEY=your_api_key_here
VITE_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project_id.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
VITE_FIREBASE_APP_ID=your_app_id
VITE_FIREBASE_DATABASE_URL=https://your_project_id-default-rtdb.firebaseio.com
# You can find all these values in your Firebase project settings
# under "Your apps" > "Web app" > "SDK setup and configuration"
# note: if you don't have a realtime database; you will not have a database URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment