-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dev.vars.example
More file actions
23 lines (19 loc) · 1.28 KB
/
Copy path.dev.vars.example
File metadata and controls
23 lines (19 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The single local config file (gitignored). Copy this to .dev.vars.
# Read by BOTH `npm run dev` (Worker secrets + Hyperdrive) and drizzle-kit migrations.
# Generate strong random values, e.g.: openssl rand -hex 32
# Signs session cookies. Must be long & random.
SESSION_SECRET="change-me-to-a-long-random-hex-string"
# One-time token that authorizes the first-run installer at /setup.
SETUP_TOKEN="change-me-to-a-random-token"
# (Optional) Your app's public origin — the SINGLE knob for your domain.
# `scripts/apply-domain.mjs` reads it on `npm run deploy` and derives the Worker's
# route from its host (a *.workers.dev host → no route; your own domain → a
# custom_domain route). Leave unset to use the default in wrangler.jsonc. In
# production you'd usually set this as a Workers Builds "Variable". See
# docs/CUSTOM-DOMAINS.md.
# APP_URL="https://go.yoursite.com"
# Points local dev's Hyperdrive binding straight at your Postgres.
# `npm run dev` uses the Vite plugin, which reads the CLOUDFLARE_ prefix.
# (If you ever use `wrangler dev` directly, that one reads WRANGLER_ instead.)
# This Postgres has no TLS, so use sslmode=disable. Use the ROTATED password.
CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE="postgres://USER:PASSWORD@YOUR_DB_HOST:5432/YOUR_DB?sslmode=disable"