From 41463ae392a67c02b444b508f04a04210d60b4f3 Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Wed, 29 May 2024 10:21:48 +0200 Subject: [PATCH] wrangler: set more environments --- .github/workflows/deploy-stage.yml | 2 +- wrangler.toml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-stage.yml b/.github/workflows/deploy-stage.yml index 5303b32..ccb0508 100644 --- a/.github/workflows/deploy-stage.yml +++ b/.github/workflows/deploy-stage.yml @@ -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 diff --git a/wrangler.toml b/wrangler.toml index bfb64c8..98e8730 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -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 = [ @@ -18,9 +18,9 @@ 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"} @@ -28,7 +28,7 @@ durable_objects.bindings = [ [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"}