You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
920 B
TOML
24 lines
920 B
TOML
# Wrangler configuration for the quotesdb API Worker.
|
|
# Used by `wrangler deploy` (invoked via `just deploy-api` or tofu apply).
|
|
# wrangler is required because the Cloudflare Terraform provider v4 does not
|
|
# support uploading ES module workers that import wasm files — wrangler handles
|
|
# the multipart module bundle upload correctly.
|
|
|
|
name = "quotesdb-api"
|
|
main = "build/index.js"
|
|
compatibility_date = "2024-11-01"
|
|
|
|
# Route: maps quotes.elijah.run/api/* to this worker.
|
|
# Managed here rather than in Terraform because wrangler already owns the script
|
|
# upload (provider v4 can't handle ES module + wasm), so it's simpler to let
|
|
# wrangler own the route too.
|
|
[[routes]]
|
|
pattern = "quotes.elijah.run/api/*"
|
|
zone_name = "elijah.run"
|
|
|
|
# D1 database binding — referenced in workers-rs code as `env.DB`.
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "quotesdb"
|
|
database_id = "42aadd79-ce31-4ee0-b9d7-04d06062c607"
|