diff --git a/.github/workflows/deploy-cloudflare-workers.yml b/.github/workflows/deploy-cloudflare-workers.yml index 73367c3c..3e638672 100644 --- a/.github/workflows/deploy-cloudflare-workers.yml +++ b/.github/workflows/deploy-cloudflare-workers.yml @@ -29,6 +29,7 @@ jobs: uses: cloudflare/wrangler-action@v3 with: workingDirectory: "cloudflare-workers" + wranglerVersion: "3.78.10" accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} secrets: | diff --git a/cloudflare-workers/wrangler.toml b/cloudflare-workers/wrangler.toml index e877db49..2a8f3173 100644 --- a/cloudflare-workers/wrangler.toml +++ b/cloudflare-workers/wrangler.toml @@ -3,10 +3,17 @@ name = "feedback-sys-backend" main = "src/index.ts" compatibility_date = "2023-05-18" compatibility_flags = ["nodejs_compat"] +routes = [ + { pattern = "feedback-sys.mgt.moe", custom_domain = true } +] [placement] mode = "smart" +[observability] +enabled = true + + [[d1_databases]] binding = "DB" database_name = "comments"