forked from kriasoft/react-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
107 lines (101 loc) · 2.44 KB
/
wrangler.jsonc
File metadata and controls
107 lines (101 loc) · 2.44 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
97
98
99
100
101
102
103
104
105
106
107
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "example",
"main": "./dist/index.js",
"assets": {
"directory": "../../apps/web/dist",
"binding": "ASSETS"
},
"upload_source_maps": true,
"compatibility_date": "2025-05-05",
"compatibility_flags": ["nodejs_compat"],
// Default configuration applied to all environments unless overridden
"vars": {
"ENVIRONMENT": "development",
"ALLOWED_ORIGINS": "http://localhost:5173,http://127.0.0.1:5173"
},
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "your-hyperdrive-cached-id-here"
},
{
"binding": "HYPERDRIVE_DIRECT",
"id": "your-hyperdrive-direct-id-here"
}
],
"kv_namespaces": [],
// Overrides and settings for each deployment environment
// (production, staging, preview)
"env": {
"production": {
"routes": [
{
"pattern": "example.com",
"custom_domain": true
}
],
"vars": {
"ENVIRONMENT": "production",
"ALLOWED_ORIGINS": "https://example.com"
},
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "your-production-hyperdrive-cached-id-here"
},
{
"binding": "HYPERDRIVE_DIRECT",
"id": "your-production-hyperdrive-direct-id-here"
}
],
"kv_namespaces": []
},
"staging": {
"routes": [
{
"pattern": "staging.example.com",
"custom_domain": true
}
],
"vars": {
"ENVIRONMENT": "staging",
"ALLOWED_ORIGINS": "https://staging.example.com"
},
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "your-staging-hyperdrive-cached-id-here"
},
{
"binding": "HYPERDRIVE_DIRECT",
"id": "your-staging-hyperdrive-direct-id-here"
}
],
"kv_namespaces": []
},
"preview": {
"routes": [
{
"pattern": "preview.example.com",
"custom_domain": true
}
],
"vars": {
"ENVIRONMENT": "preview",
"ALLOWED_ORIGINS": "https://preview.example.com"
},
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "your-preview-hyperdrive-cached-id-here"
},
{
"binding": "HYPERDRIVE_DIRECT",
"id": "your-preview-hyperdrive-direct-id-here"
}
],
"kv_namespaces": []
}
}
}