2024-05-22 20:06:16 -07:00
|
|
|
#: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" }]
|
|
|
|
|
2024-06-01 22:36:38 -04:00
|
|
|
# Create a new D1 database using the Wrangler CLI and fill in database_name and database_id.
|
2024-05-22 20:06:16 -07:00
|
|
|
[[d1_databases]]
|
|
|
|
binding = "DB"
|
|
|
|
database_name = ""
|
|
|
|
database_id = ""
|
2024-05-26 18:37:36 -07:00
|
|
|
|
2024-06-01 22:36:38 -04:00
|
|
|
# Set STORAGE_WORKER_URL after deploying the worker.
|
|
|
|
# Set KEY to be the same as KEY in /backend/storage/wrangler.toml.
|
2024-05-26 18:37:36 -07:00
|
|
|
[vars]
|
|
|
|
KEY = ""
|
|
|
|
STORAGE_WORKER_URL = ""
|