Skip to content

Commit fc1a110

Browse files
committed
docs(worker): add .dev.vars.example for local dev secrets
1 parent 45d9149 commit fc1a110

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ yarn-error.log*
4646
# env files (can opt-in for committing if needed)
4747
.env*
4848
!.env.example
49+
worker/.dev.vars
50+
!worker/.dev.vars.example
4951

5052
# vercel
5153
.vercel

worker/.dev.vars.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Cloudflare Worker — local dev only (`wrangler dev`)
2+
#
3+
# Wrangler reads `.dev.vars` (gitignored) for local dev secrets/vars,
4+
# OVERRIDING values in wrangler.toml. Production uses `wrangler secret put`
5+
# and `[vars]` in wrangler.toml — NOT this file.
6+
#
7+
# Usage:
8+
# 1. cp .dev.vars.example .dev.vars
9+
# 2. Fill in real values
10+
# 3. wrangler dev
11+
#
12+
# DO NOT commit .dev.vars (it's in .gitignore).
13+
14+
# ── secrets (production: wrangler secret put) ────────────────────────────────
15+
GH_APP_PRIVATE_KEY="<paste PKCS#8 PEM here as a single line, escape newlines as \n>"
16+
RESEND_API_KEY="re_xxxxxxxxxxxxxxxxxxxxx"
17+
TURNSTILE_SECRET_KEY=""
18+
19+
# ── vars (production: wrangler.toml [vars]) ──────────────────────────────────
20+
GH_APP_ID="3664188"
21+
PRODUCT_ROUTES='{"shopzy":{"repo":"first-fluke/shopzy","installationId":"131094718"}}'
22+
ALLOWED_ORIGINS="http://localhost:3000"
23+
RESEND_FROM="FIRST FLUKE <contact@mail.firstfluke.com>"
24+
OPS_ALERT_TO="ops@example.com"

0 commit comments

Comments
 (0)