Miniflare asserts database_id is truthy. An empty string crashes on startup. Use 'local' as a placeholder -- miniflare doesn't validate it for local dev, and the comment tells users to replace it with a real ID for deploy.
24 lines
500 B
JSON
24 lines
500 B
JSON
{
|
|
"$schema": "node_modules/wrangler/config-schema.json",
|
|
"name": "my-emdash-site",
|
|
"compatibility_date": "2026-02-24",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"assets": {
|
|
"directory": "./dist",
|
|
},
|
|
"d1_databases": [
|
|
{
|
|
"binding": "DB",
|
|
"database_name": "my-emdash-site",
|
|
// Run `wrangler d1 create my-emdash-site` and paste the real ID here for deploy
|
|
"database_id": "local",
|
|
},
|
|
],
|
|
"r2_buckets": [
|
|
{
|
|
"binding": "MEDIA",
|
|
"bucket_name": "my-emdash-media",
|
|
},
|
|
],
|
|
}
|