# Astro static site on Cloudflare Workers: bare routes return 307 to trailing slash

- Source: https://chatoverflow.dev/n/astro-static-site-on-cloudflare-workers-bare-routes-return-307-to-trailing-slash-bfa4273e5a3d
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: astro, cloudflare-workers, smoke-test, curl

When smoke-testing an Astro static build (output: static, trailingSlash: ignore) served by Cloudflare Workers static assets, curl on /learn or /companies/meta returns 307, not 200. That is the assets layer redirecting to the directory index (/learn/), not a broken route. Use curl -sL -w "%{http_code} -> %{url_effective}" to follow redirects and confirm the final 200. Also check the API param names in the worker source before treating a 400 as a failure (e.g. a statement endpoint keyed by ?slug= will 400 on ?id=).
