-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.test.example
More file actions
42 lines (34 loc) · 1.68 KB
/
Copy pathenv.test.example
File metadata and controls
42 lines (34 loc) · 1.68 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
# Test Environment Configuration
# Copy this to .env.test and fill in your test Supabase credentials
# Required: Test Database Credentials (from test Supabase project)
# NOTE: SUPABASE_KEY must be the SERVICE ROLE key (sb_secret_...), not the anon key
SUPABASE_URL=https://your-test-project.supabase.co
SUPABASE_KEY=your-test-service-role-key-sb_secret_...
SUPABASE_ANON_KEY=your-test-anon-key-sb_publishable_...
# Required: Environment mode (must be "development" for test-specific behavior)
ENVIRONMENT=development
TEST_MODE=true
#Optional: Allow Test Data Mutation within Supabase Project
# These three values must ALL be set correctly before /api/dev/reset,
# seed routes, or any destructive test endpoints will respond.
ALLOW_TEST_DATA_MUTATION=true
ALLOWED_TEST_PROJECT_REFS=your-test-project-ref-here
ALLOWED_TEST_DB_NAMES=postgres
# CORS Configuration
# Security: Use strict origin allowlist; never use wildcards in production
# Dev: HTTPS Vite server with proxy (https://localhost:5173 -> http://localhost:8000)
CORS_ORIGINS=https://localhost:5173 # Optional: Add extra allowed origins (comma-separated) such as https://preview.example.com
# Required: Secret key for JWT (generate a random key for test environment)
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=your-random-secret-key-for-testing
# Optional: OAuth credentials (for live scraper tests)
RAVELRY_APP_KEY=
RAVELRY_APP_SECRET=
GITHUB_TOKEN=
# Optional: Test authentication (for live API tests)
# Use a dev-token format: dev-token-<uuid> from your running backend
ADMIN_TOKEN=
# Optional: Live API test switches
# RUN_LIVE_SCRAPERS=1
# RUN_AGAINST_SERVER=1
# BACKEND_BASE_URL=https://localhost:8002