-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
95 lines (80 loc) · 5.03 KB
/
Copy path.env.example
File metadata and controls
95 lines (80 loc) · 5.03 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
95
# =============================================================================
# Coursemap environment
# =============================================================================
# Copy this file to apps/web/.env.local. Never commit populated credentials.
# NEXT_PUBLIC_* values are browser-visible and baked into production builds.
# Rebuild after changing them. Other values below are server-only.
#
# Local setup: pnpm db:start, pnpm db:reset, then pnpm dev.
# dev, build, start and preview:local read the local Supabase URL and keys
# automatically and supply the site URL. Only the explicit :prod commands read
# the hosted values below.
# Optional overrides stay commented out until needed.
# =============================================================================
# 1. Required: application and authentication
# =============================================================================
# These three values enable Supabase access and authentication redirects.
# Used by: lib/supabase/config.ts (paths below are relative to apps/web).
# Supabase API origin. Use the local value below or your hosted project's URL.
# Find local connection details with supabase status; hosted values are in the
# project's Connect dialog. Keep this URL and the public key on the same project.
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
# Browser-safe publishable key. Required by the explicit :prod commands.
# Local commands supply this from Supabase; never substitute a server secret.
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=
# Public application origin for authentication redirects and cookie settings.
# Use HTTPS outside localhost/127.0.0.1, with no path, query or fragment.
# Match the allowed authentication URLs in your Supabase configuration.
# Local commands override this with http://127.0.0.1:3000.
NEXT_PUBLIC_SITE_URL=http://localhost:3000
# =============================================================================
# 2. Optional feature: catalogue synchronisation
# =============================================================================
# Ordinary catalogue browsing and student planning do not need these credentials.
# Configure them when checking detailed ANU source material.
# Privileged Supabase server key for local preview and browser test user setup.
# Local commands supply the local server key automatically.
# Use a key from the same project as NEXT_PUBLIC_SUPABASE_URL. Keep it server-only.
# Used by: scripts/local/dev-preview.mjs and playwright/fixtures.ts.
# SUPABASE_SECRET_KEY=
# OpenRouter API key for model pricing lookups when adding or refreshing models.
# Required only when making model requests, which can incur usage charges.
# Create a key in OpenRouter's API Keys settings.
# Model choices and pricing are managed in the admin dashboard and database.
# Used by: lib/catalogue-import/openrouter.ts.
# OPENROUTER_API_KEY=
# Direct Postgres connection for the sync worker on Vercel. Development and
# the local test server use the loopback database automatically, so leave this
# unset locally. Use the Supabase connection pooler URL for the hosted project.
# Used by: lib/catalogue-sync/sync-store.ts.
# COURSEMAP_SYNC_DATABASE_URL=
# Set to exactly "true" to publish catalogue syncs to Vercel Queues
# (topic catalogue-sync-v1, consumed by app/api/queues/catalogue-sync).
# Anything else processes the record sync in the web process after the request,
# which is how local development completes a sync without a queue.
# Used by: lib/catalogue-sync/sync-queue.ts.
# COURSEMAP_QUEUE_SYNCS_ENABLED=false
# =============================================================================
# 3. Optional overrides: Room Finder services
# =============================================================================
# Built-in endpoints work without extra configuration. Leave these lines
# commented to use the defaults shown. Empty strings do not select the defaults.
# Browser-visible MapLibre style URL, fetched by the campus map.
# Used by: ui/rooms/campus-map.tsx.
# NEXT_PUBLIC_ROOM_MAP_STYLE_URL=https://tiles.openfreemap.org/styles/liberty
# Browser-visible terrain TileJSON URL, fetched by the campus map.
# Used by: ui/rooms/campus-map.tsx.
# NEXT_PUBLIC_ROOM_MAP_TERRAIN_URL=https://tiles.mapterhorn.com/tilejson.json
# Server-side walking route service. Must use HTTPS and return OSRM-compatible
# route geometry, distance and duration. The default service uses a walking
# backend even though its URL contains /driving.
# Used by: lib/rooms/routing.ts.
# ROOM_MAP_ROUTING_URL=https://routing.openstreetmap.de/routed-foot/route/v1/driving
# Direct Postgres connection for the local catalogue and calendar scripts.
# They read the port from supabase/config.toml, so this is only needed when the
# local stack is somewhere else. DATABASE_URL is read as a fallback. Both must
# resolve to loopback; a hosted connection is refused.
# Used by: scripts/catalogue/lib/local-database.mjs.
# COURSEMAP_DATABASE_URL=
# Test ports, local test database credentials and queue overrides are supplied
# by the test scripts. Do not copy their environment into a deployed application.