File tree Expand file tree Collapse file tree 3 files changed +23
-18
lines changed
apps/cli/templates/runtime/workers/apps/server Expand file tree Collapse file tree 3 files changed +23
-18
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " create-better-t-stack " : patch
3
+ ---
4
+
5
+ Switch workers template from TOML to JSONC format
Original file line number Diff line number Diff line change
1
+ {
2
+ "name": "{{ projectName }} -server",
3
+ "main": "src/index.ts",
4
+ "compatibility_date": "2025-06-15",
5
+ "compatibility_flags": ["nodejs_compat"],
6
+ "vars": {
7
+ "NODE_ENV": "production"
8
+ // Non-sensitive environment variables (visible in dashboard)
9
+ // "CORS_ORIGIN": "https://your-frontend-domain.com",
10
+ // "BETTER_AUTH_URL": "https://your-worker-domain.workers.dev"
11
+ }
12
+ // ⚠️ SENSITIVE DATA: Use `wrangler secret put` instead of adding here
13
+ // Don't put these in "vars" - they'll be visible in the dashboard!
14
+ // - DATABASE_URL
15
+ // - DATABASE_AUTH_TOKEN
16
+ // - GOOGLE_GENERATIVE_AI_API_KEY
17
+ // - BETTER_AUTH_SECRET
18
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments