solid-start
solid-start copied to clipboard
[Bug?]: cloudflare-pages in production does not have 404 status code for [...404] route
Duplicates
- [x] I have searched the existing issues
Latest version
- [x] I have tested the latest version
Current behavior 😯
200
Expected behavior 🤔
404
Steps to reproduce 🕹
import { Title } from "@solidjs/meta";
import { HttpStatusCode } from "@solidjs/start";
export default function NotFound() {
return (
<>
<Title>Not Found</Title>
<HttpStatusCode code={404} />
<div>Not Found</div>
</>
);
}
go to http://localhost:8788/url-that-does-not-exist
you'll see 404 status code in wrangler pages dev but not in production
Context 🔦
this bug doesn't occur in cloudflare-worker preset, only cloudflare-pages
Your environment 🌎
HttpStatusCode does not work unless you set mode to "async"