-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrangler.jsonc
33 lines (33 loc) · 904 Bytes
/
wrangler.jsonc
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
/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "react-postgres-fullstack-template",
"main": "api/index.js",
"compatibility_flags": ["nodejs_compat"],
"compatibility_date": "2025-04-01",
"observability": {
"enabled": true,
"head_sampling_rate": 1
},
"assets": {
"binding": "ASSETS",
"not_found_handling": "single-page-application"
},
// Hyperdrive binding is optional - if not provided, app will use mock data
// To enable Hyperdrive, uncomment and configure properly:
/*
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "YOUR_HYPERDRIVE_ID",
"localConnectionString": "postgresql://myuser:mypassword@localhost:5432/mydatabase"
}
],
*/
"placement": {
"mode": "smart"
}
}