-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.production
More file actions
29 lines (28 loc) · 1.63 KB
/
Copy path.env.production
File metadata and controls
29 lines (28 loc) · 1.63 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
# Production env consumed by `vite build`. Cloudflare's GitHub integration
# runs that command on every push to `main`; Vite inlines `VITE_*` variables
# into the compiled bundle at build time, so `dataUrl()` in cloudLoader.ts
# resolves to the R2 host instead of the relative `/data/` path.
#
# This file is committed (carved out of the otherwise-blanket `.env*`
# gitignore) because Cloudflare Workers Assets projects without a Worker
# script can't store env vars in the dashboard, and the value is a public
# URL anyway — no secret leaks here.
#
# Dev intentionally has no `.env.development`, so `dataUrl()` falls back to
# the empty string under `npm run dev` and Vite serves `public/data/*.bin`
# directly via the relative path.
#
# Points at the R2 bucket's custom-domain hostname. Provisioned 2026-05-06
# by attaching `skymap-data.rulkens.com` to the `skymap-data` R2 bucket via
# the Cloudflare dashboard (R2 → bucket → Settings → Custom Domains). An
# earlier draft of CLAUDE.md called this `data.skymap.rulkens.com`; the
# actual provisioned hostname uses the `skymap-data.` prefix instead.
VITE_DATA_BASE_URL=https://skymap-data.rulkens.com
# Origin of the self-hosted Counterscale analytics worker. Read via
# `import.meta.env.VITE_COUNTERSCALE_URL` by injectAnalytics(), which appends
# the tracker <script> only in a production build. Public URL, no secret.
#
# Dev has no `.env.development`, so this is undefined under `npm run dev` and
# injectAnalytics() injects nothing — keeping development page views out of
# the analytics, the same way `dataUrl()` skips R2 in dev.
VITE_COUNTERSCALE_URL=https://counterscale.rulkens.workers.dev