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.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
{
|
||||
"binding": "DB",
|
||||
"database_name": "my-portfolio-site",
|
||||
// Run `wrangler d1 create my-portfolio-site` and paste the ID here
|
||||
"database_id": "",
|
||||
// Run `wrangler d1 create my-portfolio-site` and paste the real ID here for deploy
|
||||
"database_id": "local",
|
||||
},
|
||||
],
|
||||
"r2_buckets": [
|
||||
|
||||
Reference in New Issue
Block a user