Skip to content

Commit e9f0b52

Browse files
Digidaiclaude
andcommitted
fix: comment out D1 binding until database is created
The D1 AUTH_DB binding causes deploy failure when the database doesn't exist yet. Code already handles AUTH_DB being undefined (falls back to legacy token auth). Uncomment after running: wrangler d1 create md-auth wrangler d1 execute AUTH_DB --file=schema.sql Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 860639e commit e9f0b52

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

wrangler.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ binding = "IMAGE_BUCKET"
1717
bucket_name = "md-images"
1818

1919
# D1 database for auth, API keys, and usage metering
20-
# Create: wrangler d1 create md-auth
21-
# Migrate: wrangler d1 execute AUTH_DB --file=schema.sql
22-
[[d1_databases]]
23-
binding = "AUTH_DB"
24-
database_name = "md-auth"
25-
database_id = "" # Fill after: wrangler d1 create md-auth
20+
# To enable: uncomment the block below after creating the database:
21+
# wrangler d1 create md-auth
22+
# wrangler d1 execute AUTH_DB --file=schema.sql
23+
# [[d1_databases]]
24+
# binding = "AUTH_DB"
25+
# database_name = "md-auth"
26+
# database_id = "" # Fill after: wrangler d1 create md-auth
2627

2728
[durable_objects]
2829
bindings = [

0 commit comments

Comments
 (0)