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