Skip to content

Commit

Permalink
wrangler: fix durable objects config
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbrino committed May 28, 2024
1 parent 70408af commit b488888
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ tsconfig = "tsconfig.json"
# tracks changes on branch `prod`
route = "backend.tokentracker.xyz"

[durable_objects]
bindings = [
{ name = "client_logs", class_name = "ClientLog" }
durable_objects.bindings = [
{ name = "client_logs", class_name = "ClientLog"}
]

[[migrations]]
Expand All @@ -23,6 +22,14 @@ mode = "smart"
# tracks changes on branch `main`
route = "staging.backend.tokentracker.xyz"

durable_objects.bindings = [
{ name = "client_logs", class_name = "ClientLog"}
]

[env.dev]
# tracks latest changes in PRs
route = "dev.backend.tokentracker.xyz"

durable_objects.bindings = [
{ name = "client_logs", class_name = "ClientLog"}
]

0 comments on commit b488888

Please sign in to comment.