solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Bug?]: cloudflare-pages in production does not have 404 status code for [...404] route

Open huseeiin opened this issue 9 months ago • 1 comments

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 🌎


huseeiin avatar Mar 23 '25 10:03 huseeiin

HttpStatusCode does not work unless you set mode to "async"

huseeiin avatar Jul 09 '25 09:07 huseeiin