Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
baken
Static site (Cloudflare assets, public/ is the asset directory). The hotel map lives in public/hotelkaart/index.html.
Viewing and testing the map
Always serve over http://localhost, never open index.html as file://.
Why: the OpenStreetMap tile servers require a Referer header (the page sets referrerPolicy:"origin" on the tile layer). A file:// page sends none, so every tile comes back as "403 Access blocked". Seen 2026-11-12.
How to apply:
- Serve:
cd ~/projects/baken/public && python3 -m http.server 8799, then openhttp://localhost:8799/hotelkaart/ - A Claude Code Bash call needs
dangerouslyDisableSandbox: truefor this server, otherwise it answers 404 to every path wrangler devfails with Wrangler 4.135.0:wrangler.jsonchas compatibility date 2026-11-01, newer than that binary supports (2026-09-25). Upgrade Wrangler first- Screenshots via Playwright: use the
http://localhostURL too (it blocksfile:) - Dark mode follows the system setting (
prefers-color-scheme). Mobile layout (language toggle bottom right) at 480px and narrower