forked from a11yhood/a11yhood.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
94 lines (87 loc) · 3.42 KB
/
Copy pathenv.example
File metadata and controls
94 lines (87 loc) · 3.42 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
################################################################################
# a11yhood Frontend - PRODUCTION ENVIRONMENT CONFIGURATION EXAMPLE
#
# This file shows examples for production configuration
# Copy to .env.local and fill in your actual values (not committed to git)
#
# IMPORTANT: The frontend supports TWO MODES:
# - DEVELOPMENT MODE: Uses local backend, includes dev utilities
# - PRODUCTION MODE: Uses production backend, real Supabase
#
# For LOCAL DEVELOPMENT:
# - Use default .env (or leave unset) - backend=http://localhost:8002
# - Uses dev mode with mock/test users
#
# For PRODUCTION DEPLOYMENT:
# - Create .env.local with production values
# - Uses real Supabase and real backend
################################################################################
# ============================================================================
# SUPABASE CONFIGURATION (PRODUCTION ONLY)
# ============================================================================
#
# These values are used for frontend authentication and real-time features
#
# Get from Supabase Dashboard:
# 1. Log in to https://supabase.com/dashboard
# 2. Select your PRODUCTION project
# 3. Go to Settings → API
# 4. Copy the Project URL and anon/public key
#
# NOTE: Frontend uses ANON key (limited via RLS policies)
# Never expose service_role key to frontend!
#
VITE_SUPABASE_URL=https://your-production-project.supabase.co
VITE_SUPABASE_ANON_KEY=sb_publishable_your_anon_key_here
# ============================================================================
# BACKEND API URL
# ============================================================================
#
# Where the frontend makes API requests to
#
# LOCAL DEVELOPMENT:
# - Leave unset (empty) - Vite proxy handles it
# - Vite dev server proxies: https://localhost:5173/api/* → http://localhost:8002/api/*
# - This avoids CORS and mixed-content issues
#
# DEVELOPMENT with READ ONLY ACCESS to production database
# DEFAULT setting to help new developers have a testable, working version
VITE_API_URL=https://a11yhood-backend.cs.washington.edu
#
# PRODUCTION (local with real backend):
# - VITE_API_URL=http://localhost:8001
# - If frontend and backend are on different machines, update accordingly
#
# CLOUD DEPLOYMENT:
# - VITE_API_URL=https://[domain]:8001 (or your API domain)
#
# GITHUB PAGES DEPLOYMENT:
# - Set as GitHub secret: VITE_API_URL=http://[domain]:8001
#
# VITE_API_URL=http://localhost:8002
# ============================================================================
# DEV MODE
# ============================================================================
#
# When true, bypasses real authentication for local testing
#
# GITHUB PAGES DEPLOYMENT:
# - Set as GitHub secret: VITE_DEV_MODE=false
#
# VITE_DEV_MODE=false
# =========================================================================
# LOG LEVEL
# =========================================================================
#
# Controls console verbosity. Set to "info" to hide debug-only traces when
# running in the browser or during builds.
#
VITE_LOG_LEVEL=debug
# =========================================================================
# TEST BACKEND URL
# =========================================================================
#
# When set, enables backend-dependent accessibility and integration tests.
# Leave unset (default) to skip those tests when no backend is running.
#
# TEST_BACKEND_URL=http://localhost:8002