-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.example.jsonc
More file actions
92 lines (92 loc) · 2.06 KB
/
wrangler.example.jsonc
File metadata and controls
92 lines (92 loc) · 2.06 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Template configuration.
* Copy to wrangler.jsonc and replace the placeholder values.
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "blankpage",
"compatibility_date": "2026-02-24",
"main": "server/index.ts",
"observability": {
"enabled": true
},
"compatibility_flags": [
"nodejs_compat"
],
"vars": {
"APP_PASSWORD": "REPLACE_WITH_APP_PASSWORD",
"SESSION_TTL_SECONDS": "604800",
"CLIP_TTL_SECONDS": "3600",
"CACHE_TTL_SECONDS": "172800",
"CORS_ALLOWED_ORIGINS": "REPLACE_WITH_CORS_ALLOWED_ORIGINS"
},
"kv_namespaces": [
{
"binding": "MEMO_KV",
"id": "REPLACE_WITH_KV_ID",
"preview_id": "REPLACE_WITH_KV_PREVIEW_ID"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "memo_db",
"database_id": "REPLACE_WITH_D1_ID",
"migrations_dir": "migrations"
}
],
"env": {
"frontend": {
"vars": {
"APP_PASSWORD": "REPLACE_WITH_APP_PASSWORD",
"SESSION_TTL_SECONDS": "604800",
"CLIP_TTL_SECONDS": "3600",
"CACHE_TTL_SECONDS": "172800",
"CORS_ALLOWED_ORIGINS": "REPLACE_WITH_CORS_ALLOWED_ORIGINS"
},
"kv_namespaces": [
{
"binding": "MEMO_KV",
"id": "REPLACE_WITH_KV_ID",
"preview_id": "REPLACE_WITH_KV_PREVIEW_ID"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "memo_db",
"database_id": "REPLACE_WITH_D1_ID",
"migrations_dir": "migrations"
}
],
"assets": {
"directory": "dist",
"not_found_handling": "single-page-application"
}
},
"worker_only": {
"vars": {
"APP_PASSWORD": "REPLACE_WITH_APP_PASSWORD",
"SESSION_TTL_SECONDS": "604800",
"CLIP_TTL_SECONDS": "3600",
"CACHE_TTL_SECONDS": "172800",
"CORS_ALLOWED_ORIGINS": "REPLACE_WITH_CORS_ALLOWED_ORIGINS"
},
"kv_namespaces": [
{
"binding": "MEMO_KV",
"id": "REPLACE_WITH_KV_ID",
"preview_id": "REPLACE_WITH_KV_PREVIEW_ID"
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "memo_db",
"database_id": "REPLACE_WITH_D1_ID",
"migrations_dir": "migrations"
}
]
}
}
}