Fix wrangler.jsonc for Cloudflare Workers deployment
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
cdec660d10
commit
4fc9fb0151
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue