fix new user error + add wrangler.toml examples

This commit is contained in:
Ishaan Dey
2024-05-22 20:06:16 -07:00
parent f35e5debff
commit 8e49fed48b
6 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,12 @@
#:schema node_modules/wrangler/config-schema.json
name = "database"
main = "src/index.ts"
compatibility_date = "2024-04-05"
compatibility_flags = ["nodejs_compat"]
services = [{ binding = "STORAGE", service = "storage" }]
[[d1_databases]]
binding = "DB"
database_name = ""
database_id = ""