-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
96 lines (93 loc) · 2.64 KB
/
Copy pathwrangler.jsonc
File metadata and controls
96 lines (93 loc) · 2.64 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
93
94
95
96
{
"$schema": "node_modules/wrangler/config-schema.json",
"main": ".open-next/worker.js",
"name": "cc3-storefront",
"compatibility_date": "2025-09-15",
"compatibility_flags": [
// Enable Node.js API
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag
"nodejs_compat",
// Populate process.env with environment variables
// see https://developers.cloudflare.com/workers/configuration/environment-variables/#environment-variables-and-nodejs-compatibility
"nodejs_compat_populate_process_env",
// 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": "DB",
"database_id": "ff3f3e29-01bf-4ffa-9826-3897676844b2",
"database_name": "cc3-payload-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": "cc3-media",
},
// Create a R2 binding with the binding name "NEXT_INC_CACHE_R2_BUCKET"
// {
// "binding": "NEXT_INC_CACHE_R2_BUCKET",
// "bucket_name": "<BUCKET_NAME>",
// },
],
"observability": {
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true,
},
},
// Environment variables for production
"vars": {
"NODE_ENV": "production",
},
// Mark packages as external to avoid bundling issues
"rules": [
{
"type": "ESModule",
"globs": ["**/@opentelemetry/api"],
"fallthrough": true
}
],
// Environment-specific configurations
"env": {
"production": {
"name": "cc3-storefront",
"vars": {
"NODE_ENV": "production",
"MEDUSA_BACKEND_URL": "https://casual-chic.medusajs.app",
"NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY": "pk_f086d3c7cf6026676f9eef829d75bfcfdc8ca77ae1eeafbb2e06d367938ac456",
"PAYLOAD_SECRET": "670ba53416dab189c6de776c664d0845b92aeeaa02b5dadd222c304087c08a1b",
},
"d1_databases": [
{
"binding": "DB",
"database_id": "ff3f3e29-01bf-4ffa-9826-3897676844b2",
"database_name": "cc3-payload-db",
"remote": true,
},
],
"services": [],
"r2_buckets": [
{
"binding": "R2",
"bucket_name": "cc3-media",
},
],
},
},
}