Files
moreminimore-redesign/templates/portfolio-cloudflare/wrangler.jsonc
Matt Kane 086647bff4 fix: use placeholder database_id in templates for local dev
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.
2026-04-01 12:39:34 +01:00

24 lines
512 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "my-portfolio-site",
"compatibility_date": "2026-02-24",
"compatibility_flags": ["nodejs_compat"],
"assets": {
"directory": "./dist",
},
"d1_databases": [
{
"binding": "DB",
"database_name": "my-portfolio-site",
// Run `wrangler d1 create my-portfolio-site` and paste the real ID here for deploy
"database_id": "local",
},
],
"r2_buckets": [
{
"binding": "MEDIA",
"bucket_name": "my-portfolio-media",
},
],
}