mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Switch worker template from TOML to JSONC format
This commit is contained in:
5
.changeset/ripe-facts-unite.md
Normal file
5
.changeset/ripe-facts-unite.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Switch workers template from TOML to JSONC format
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "{{projectName}}-server",
|
||||||
|
"main": "src/index.ts",
|
||||||
|
"compatibility_date": "2025-06-15",
|
||||||
|
"compatibility_flags": ["nodejs_compat"],
|
||||||
|
"vars": {
|
||||||
|
"NODE_ENV": "production"
|
||||||
|
// Non-sensitive environment variables (visible in dashboard)
|
||||||
|
// "CORS_ORIGIN": "https://your-frontend-domain.com",
|
||||||
|
// "BETTER_AUTH_URL": "https://your-worker-domain.workers.dev"
|
||||||
|
}
|
||||||
|
// ⚠️ SENSITIVE DATA: Use `wrangler secret put` instead of adding here
|
||||||
|
// Don't put these in "vars" - they'll be visible in the dashboard!
|
||||||
|
// - DATABASE_URL
|
||||||
|
// - DATABASE_AUTH_TOKEN
|
||||||
|
// - GOOGLE_GENERATIVE_AI_API_KEY
|
||||||
|
// - BETTER_AUTH_SECRET
|
||||||
|
}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
name = "{{projectName}}-server"
|
|
||||||
main = "src/index.ts"
|
|
||||||
compatibility_date = "2025-06-15"
|
|
||||||
compatibility_flags = ["nodejs_compat"]
|
|
||||||
|
|
||||||
[vars]
|
|
||||||
NODE_ENV = "production"
|
|
||||||
|
|
||||||
# Non-sensitive environment variables (visible in dashboard)
|
|
||||||
# CORS_ORIGIN = "https://your-frontend-domain.com"
|
|
||||||
# BETTER_AUTH_URL = "https://your-worker-domain.workers.dev"
|
|
||||||
|
|
||||||
# ⚠️ SENSITIVE DATA: Use `wrangler secret put` instead of adding here
|
|
||||||
# Don't put these in [vars] - they'll be visible in the dashboard!
|
|
||||||
# - DATABASE_URL
|
|
||||||
# - DATABASE_AUTH_TOKEN
|
|
||||||
# - GOOGLE_GENERATIVE_AI_API_KEY
|
|
||||||
# - BETTER_AUTH_SECRET
|
|
||||||
Reference in New Issue
Block a user