Skip to content

Commit

Permalink
wrangler: set more environments
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbrino committed May 29, 2024
1 parent 6291119 commit 41463ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
wranglerVersion: "3.56.0"
command: deploy -e stage
command: deploy -e staging
10 changes: 5 additions & 5 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ compatibility_date = "2023-07-01"
send_metrics = false
main = "server/index.ts"
tsconfig = "tsconfig.json"
# tracks changes on branch `prod`
# tracks changes on branch `main`
route = "backend.mytokentracker.xyz"

durable_objects.bindings = [
Expand All @@ -18,17 +18,17 @@ new_classes = ["ClientLog"]
[placement]
mode = "smart"

[env.stage]
# tracks changes on branch `main`
route = "staging.backend.mytokentracker.xyz"
[env.staging]
# tracks changes on branch `staging`
route = "staging-backend.mytokentracker.xyz"

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

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

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

0 comments on commit 41463ae

Please sign in to comment.