-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
81 lines (80 loc) · 2.35 KB
/
Copy pathwrangler.jsonc
File metadata and controls
81 lines (80 loc) · 2.35 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"main": ".open-next/worker.js",
"name": "payload-cms",
"account_id": "0a06c8f94612fa729a02344c7bdb79ec",
"compatibility_date": "2025-08-15",
"compatibility_flags": [
// Enable Node.js API
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag
"nodejs_compat",
// Allow to fetch URLs in your app
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
"global_fetch_strictly_public",
],
"assets": {
"directory": ".open-next/assets",
"binding": "ASSETS",
},
"d1_databases": [
{
"binding": "D1",
"database_id": "4afc5d0f-09ca-4280-b496-d962d5ed370d",
"database_name": "payload-cms-d1-db",
"remote": true,
},
],
"services": [
// The service should match the "name" of your worker
// {
// "binding": "WORKER_SELF_REFERENCE",
// "service": "my-app"
// },
],
"r2_buckets": [
{
"binding": "R2",
"bucket_name": "payload-cms-storage",
"preview_bucket_name": "payload-cms-storage",
"remote": true,
},
// Create a R2 binding with the binding name "NEXT_INC_CACHE_R2_BUCKET"
// {
// "binding": "NEXT_INC_CACHE_R2_BUCKET",
// "bucket_name": "<BUCKET_NAME>",
// },
],
// Here's how to configure an additional environment
// It can be deployed with `CLOUDFLARE_ENV=staging pnpm run deploy`
// "env": {
// "staging": {
// "name": "my-app-staging",
// "d1_databases": [
// {
// "binding": "D1",
// "database_id": "DATABASE_ID",
// "database_name": "my-app-staging",
// "remote": true
// }
// ],
// "services": [
// // The service should match the "name" of your worker
// // {
// // "binding": "WORKER_SELF_REFERENCE",
// // "service": "my-app-staging"
// // },
// ],
// "r2_buckets": [
// {
// "binding": "R2",
// "bucket_name": "my-app-staging"
// }
// // Create a R2 binding with the binding name "NEXT_INC_CACHE_R2_BUCKET"
// // {
// // "binding": "NEXT_INC_CACHE_R2_BUCKET",
// // "bucket_name": "<BUCKET_NAME>",
// // },
// ]
// }
// }
}