Skip to content

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

Description

@huseeiin

Duplicates

  • I have searched the existing issues

Latest version

  • 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 馃寧

Metadata

Metadata

Assignees

No one assigned

    Labels

    Start 2.xtargeting SolidStart 2.x versionsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions