Repository navigation
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
70 lines (70 loc) · 1.96 KB
/
Copy pathwrangler.jsonc
File metadata and controls
70 lines (70 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "syntax-auth",
"account_id": "3ebe60b8bb090efeda7702aff60769bb",
"main": ".svelte-kit/cloudflare/_worker.js",
"compatibility_date": "2026-07-22",
"compatibility_flags": ["nodejs_compat"],
"routes": [{ "pattern": "auth.syntax.fm", "custom_domain": true }],
// Serve production only at auth.syntax.fm: no *.workers.dev address and no per-version preview
// URLs, which would run with production secrets and D1.
"workers_dev": false,
"preview_urls": false,
"vars": {
"BETTER_AUTH_URL": "https://auth.syntax.fm",
"AUTH_COOKIE_DOMAIN": ".syntax.fm",
"GITHUB_CLIENT_ID": "Ov23liaN1JKT8pC8OZg6"
},
"assets": {
"binding": "ASSETS",
"directory": ".svelte-kit/cloudflare"
},
"d1_databases": [
{
"binding": "DB",
"database_name": "syntax-auth",
"database_id": "f4912a0c-c4cd-4f67-b004-2f2d44ffed6a",
"migrations_dir": "migrations"
}
],
"env": {
// Local development only (`pnpm dev`, local migrations, Docker). Never deploy this env: it has
// no secrets, a loopback URL, and a database ID that exists only in local Wrangler state.
"local": {
"routes": [],
"workers_dev": false,
"vars": {
"BETTER_AUTH_URL": "http://localhost:37960",
"AUTH_COOKIE_DOMAIN": "",
"GITHUB_CLIENT_ID": ""
},
"d1_databases": [
{
"binding": "DB",
"database_name": "syntax-auth",
"database_id": "local-syntax-auth",
"migrations_dir": "migrations"
}
]
},
// `pnpm oauth:register --remote` only: remote D1 with local, secret-free Better Auth settings.
"oauth-registration": {
"routes": [],
"workers_dev": false,
"vars": {
"BETTER_AUTH_URL": "http://localhost:37960",
"AUTH_COOKIE_DOMAIN": "",
"GITHUB_CLIENT_ID": ""
},
"d1_databases": [
{
"binding": "DB",
"database_name": "syntax-auth",
"database_id": "f4912a0c-c4cd-4f67-b004-2f2d44ffed6a",
"migrations_dir": "migrations",
"remote": true
}
]
}
}
}