From 3150200617ababe956eadecbbef6ae30ad014477 Mon Sep 17 00:00:00 2001 From: Saiful Alom Date: Wed, 17 Jun 2026 12:28:56 +0600 Subject: [PATCH] build(cloudflare): revert custom worker entrypoint to standard Astro build output - Remove custom `workerEntryPoint` path targeting `./src/worker.ts` from `astro.config.mjs` - Update `wrangler.jsonc` main entrypoint path to point to Astro's compiled production bundle at `dist/_worker.js/index.js` - Align build configuration with standard Cloudflare Pages advanced deployment requirements to resolve middleware execution conflicts --- astro.config.mjs | 2 +- wrangler.jsonc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 2a1c436..5e05ed3 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,5 +17,5 @@ export default defineConfig({ }, integrations: [react()], - adapter: cloudflare({ workerEntryPoint: { path: "./src/worker.ts" } }) + adapter: cloudflare() }); \ No newline at end of file diff --git a/wrangler.jsonc b/wrangler.jsonc index b9dbd88..aa4699b 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,5 +1,5 @@ { - "main": "./src/worker.ts", + "main": "dist/_worker.js/index.js", "name": "trackflow", "compatibility_date": "2024-09-23", "compatibility_flags": [