-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.example.jsonc
More file actions
54 lines (54 loc) · 1.79 KB
/
Copy pathwrangler.example.jsonc
File metadata and controls
54 lines (54 loc) · 1.79 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
// Copy this file to wrangler.jsonc and fill in your own values.
// wrangler.jsonc is git-ignored: it may contain your custom domain / D1 id.
{
// Your Worker name (must be unique on Cloudflare if you deploy to
// the default *.workers.dev subdomain).
"name": "vec-note",
"main": "src/worker/index.ts",
"compatibility_date": "2026-09-04",
"observability": {
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true,
"persist": true
},
"traces": {
"enabled": true,
"head_sampling_rate": 1,
"persist": true
}
},
"assets": {
"directory": "./dist",
"binding": "ASSETS",
// Required: the Worker must run before static assets so it can inject
// SEO tags into / and /about; hashed assets pass through unchanged.
"run_worker_first": true
},
// Optional canonical public origin used for canonical links, Open Graph
// URLs, robots.txt and sitemap.xml. Leave it out to derive the origin from
// each request's Host automatically.
// "vars": { "SITE_URL": "https://notes.example.com" },
//
// Optional custom domain. Uncomment and replace with your own domain
// (the zone must be managed by your Cloudflare account).
// "routes": [
// {
// "pattern": "notes.example.com",
// "custom_domain": true
// }
// ],
// D1 is an independent managed resource, bound only by its database_id.
// `pnpm db:create` creates the database; paste the printed id below.
// Deploying the Worker never drops or recreates the database; schema
// changes are applied explicitly via the idempotent migrations.
"d1_databases": [
{
"binding": "DB",
"database_name": "vec-note",
"database_id": "00000000-0000-0000-0000-000000000000",
"migrations_dir": "migrations"
}
]
}