Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
30 lines (23 loc) · 1.43 KB
/
Copy path.env.example
File metadata and controls
30 lines (23 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Client (embedded in Vite bundle)
VITE_DISCORD_CLIENT_ID=
VITE_PARTYKIT_HOST=localhost:1999
# Full URL to POST { code } → { access_token } (Cloudflare Worker). Leave empty for same-origin /api/token.
# VITE_DISCORD_TOKEN_URL=https://imposter-discord-oauth.your-subdomain.workers.dev/api/token
# Dev token exchange — used only by Vite dev server (vite-plugin-discord-token), never bundled
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
# If Discord returns invalid_grant and asks for redirect_uri, set this to your registered redirect
# DISCORD_REDIRECT_URI=
# Local UI without Discord iframe: npm run dev with this set to 1
# VITE_DISCORD_MOCK=1 # e2e / smoke only — hides web profile (name, sign-in, cloud). Omit for normal dev.
# When Partykit JOIN_JWT_REQUIRED=true, fetch /api/party-jwt before JOIN (map path in Discord URL mappings)
# VITE_USE_PARTY_JWT=1
# Optional — website / PWA: anonymous Supabase users + web_profiles table (see supabase/migrations)
# VITE_SUPABASE_URL=https://xxxx.supabase.co
# Any one of the following (first match wins in code):
# VITE_SUPABASE_ANON_KEY=eyJ... # legacy JWT “anon” key
# VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY=sb_... # name used in some Supabase UI docs
# VITE_SUPABASE_PUBLISHABLE_KEY=sb_...
# Optional — Plausible Analytics (privacy-friendly; no cookie banner typical setup)
# VITE_PLAUSIBLE_DOMAIN=your.site.com
# VITE_PLAUSIBLE_SCRIPT_URL=https://plausible.io/js/script.js