mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
template: added cloudflare vite code template
This commit is contained in:
47
examples/cloudflare-vite-code/wrangler.json
Normal file
47
examples/cloudflare-vite-code/wrangler.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "cloudflare-vite-fullstack-bknd",
|
||||
"main": "./src/worker/index.ts",
|
||||
"compatibility_date": "2025-10-08",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"observability": {
|
||||
"enabled": true
|
||||
},
|
||||
"upload_source_maps": true,
|
||||
"assets": {
|
||||
"binding": "ASSETS",
|
||||
"directory": "./dist/client",
|
||||
"not_found_handling": "single-page-application",
|
||||
"run_worker_first": ["/api*", "!/assets/*"]
|
||||
},
|
||||
"vars": {
|
||||
"ENVIRONMENT": "development"
|
||||
},
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB"
|
||||
}
|
||||
],
|
||||
"r2_buckets": [
|
||||
{
|
||||
"binding": "BUCKET"
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
"production": {
|
||||
"vars": {
|
||||
"ENVIRONMENT": "production"
|
||||
},
|
||||
"d1_databases": [
|
||||
{
|
||||
"binding": "DB"
|
||||
}
|
||||
],
|
||||
"r2_buckets": [
|
||||
{
|
||||
"binding": "BUCKET"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user