mirror of
https://github.com/tiennm99/vngeoguessr.git
synced 2026-10-20 02:18:30 +00:00
Lists only the variables the app actually reads, with placeholder values, so a fresh clone does not have to grep for them. .gitignore keeps .env* ignored and whitelists this one file.
41 lines
2.0 KiB
Bash
41 lines
2.0 KiB
Bash
# Copy to .env and fill in. Every value here is a placeholder, never a real key.
|
|
#
|
|
# Only the variables the app actually reads are listed. The Vercel Marketplace
|
|
# integrations inject a larger block (PGHOST, POSTGRES_PASSWORD, KV_URL and so
|
|
# on) that nothing in this codebase reads -- leave those as `vercel env pull`
|
|
# writes them.
|
|
#
|
|
# Reference: docs/development.md > Environment Variables
|
|
|
|
# --- Mapillary (required) ---------------------------------------------------
|
|
# Without this every round fails: src/lib/mapillary.js throws on a missing token.
|
|
# Also required by scripts/build-pano-index.mjs.
|
|
# Create one at https://www.mapillary.com/dashboard/developers
|
|
MAPILLARY_ACCESS_TOKEN=
|
|
|
|
# --- Postgres (required) ----------------------------------------------------
|
|
# Neon connection string holding the panorama index. Either name works;
|
|
# `vercel env pull` writes both. Seed it with `npm run data:seed`.
|
|
DATABASE_URL=postgresql://user:password@host.neon.tech/dbname?sslmode=require
|
|
# POSTGRES_URL=
|
|
|
|
# --- Redis (required) -------------------------------------------------------
|
|
# Either the vanilla Upstash pair...
|
|
# UPSTASH_REDIS_REST_URL=https://example.upstash.io
|
|
# UPSTASH_REDIS_REST_TOKEN=
|
|
# ...or the Vercel Marketplace alias for the same thing. Set one pair, not both.
|
|
KV_REST_API_URL=https://example.upstash.io
|
|
KV_REST_API_TOKEN=
|
|
|
|
# Namespace for every physical Redis key, so this project can share an Upstash
|
|
# database with others without collisions. Optional; defaults to 'vngeoguessr:'.
|
|
# Do not set it empty -- src/lib/upstash.js treats that as unset on purpose.
|
|
# KEY_PREFIX=vngeoguessr:
|
|
|
|
# --- Map tiles (optional) ---------------------------------------------------
|
|
# Read at BUILD time, not runtime. Unset, all Leaflet maps fall back to the OSM
|
|
# public tile server: fine for dev and e2e, but its policy forbids commercial
|
|
# use, so set this before any commercial deployment. The key is public by
|
|
# design -- restrict it to the production domain in the Geoapify dashboard.
|
|
# NEXT_PUBLIC_GEOAPIFY_KEY=
|