Skip to content

Environment Variables

Chris Couchoud edited this page Mar 15, 2023 · 11 revisions

Vite

Support Vite Env Variables and Modes

Name Value
VITE_DISCORD_GUILD_ID OpenAir Discord Guild/Server ID
VITE_FIREBASE_REDIRECT_PATH Firebase Redirect cloud function path
VITE_FIREBASE_TOKEN_PATH Firebase Token cloud function path
VITE_DISCORD_ADMIN_IDS Comma separated list of Admin discord IDs (optional)
VITE_DISCORD_ADMIN_ROLE_IDS Comma separated list of Carbon Formers Admin Role IDs in Discord (optional)

Firebase Config Object Values

Read more about these values here. Values depend on Firebase project.

Name Value
VITE_FIREBASE_API_KEY --
VITE_FIREBASE_AUTH_DOMAIN --
VITE_FIREBASE_PROJECT_ID --
VITE_FIREBASE_STORAGE_BUCKET --
VITE_FIREBASE_MESSAGING_SENDER_ID --
VITE_FIREBASE_APP_ID --
VITE_FIREBASE_MEASUREMENT_ID --

Firebase Emulator - Cloud Functions

Support the Cloud Functions emulator

functions/.env.local

Name Value
DISCORD_CLIENT_ID Discord Application OAuth CLIENT ID
DISCORD_CLIENT_SECRET Discord Application OAuth CLIENT SECRET
DISCORD_REDIRECT Discord OAuth2 Redirect URL
Default value: http://localhost:5000/auth/callback
Clone this wiki locally