Skip to content

Commit 2e56b27

Browse files
Switch worker template from TOML to JSONC format
1 parent cce7f54 commit 2e56b27

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

.changeset/ripe-facts-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
Switch workers template from TOML to JSONC format
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

apps/cli/templates/runtime/workers/apps/server/wrangler.toml.hbs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)