From 4fc9fb0151b59498200e135d94f2ebc58e1400f0 Mon Sep 17 00:00:00 2001 From: Calum Muir Date: Thu, 30 Apr 2026 15:00:21 +0000 Subject: [PATCH] Fix wrangler.jsonc for Cloudflare Workers deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - assets.directory: ./dist/public → ./dist (Astro static output goes to dist/ directly, not a public subdirectory) - not_found_handling: single-page-application → 404-page (site is pre-rendered static HTML, SPA mode would serve index.html for all 404s instead of the proper 404 page) Co-Authored-By: Claude Sonnet 4.6 --- wrangler.jsonc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index 9f15edd..fd697a9 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -3,9 +3,9 @@ "main": "src/worker.ts", "compatibility_date": "2025-12-21", "assets": { - "directory": "./dist/public", + "directory": "./dist", "binding": "ASSETS", - "not_found_handling": "single-page-application" + "not_found_handling": "404-page" }, "vars": { "CONTACT_FROM_EMAIL": "info@highlandgrouprda.org.uk",