Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start - allow custom status code on initial SSR request #3738

Open
carloitaben opened this issue Mar 11, 2025 · 0 comments
Open

Start - allow custom status code on initial SSR request #3738

carloitaben opened this issue Mar 11, 2025 · 0 comments

Comments

@carloitaben
Copy link

Which project does this relate to?

Start

Describe the bug

Hello! I’m trying to set a custom status code for a server-side rendered page. On React Router 7, this can be achieved using the data function. Can Start add support for something similar? Currently, there is no way to set a custom status code on the initial SSR request.

Discussion on Discord:
https://discord.com/channels/719702312431386674/1349018191585611897

Related discussion on Next.js:
vercel/next.js#53225

I've added an example of the behavior of React Router 7 below

Your Example Website or App

https://github.com/carloitaben/test-rr7-custom-status-code/blob/main/app/routes/loader.tsx

Steps to Reproduce the Bug or Issue


Expected behavior

As a user, I expected to be able to customize the document response status code.

Screenshots or Videos

No response

Platform

  • OS: ---
  • Browser: ---
  • Version: 1.114.13

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant