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

preserve headers / content type for prerendered routes #1586

Closed
1 task done
danielroe opened this issue Aug 16, 2023 · 0 comments · Fixed by #1587
Closed
1 task done

preserve headers / content type for prerendered routes #1586

danielroe opened this issue Aug 16, 2023 · 0 comments · Fixed by #1587
Labels
enhancement New feature or request

Comments

@danielroe
Copy link
Member

Describe the feature

when prerendering routes (for example an API route returning JSON) we have access to various headers including particularly Content-Type. We should preserve this and pass it to the static handler so these routes can be served with correct headers in production.

Additional information

  • Would you be willing to help implement this feature?
@pi0 pi0 added enhancement New feature or request and removed pending triage labels Aug 16, 2023
@pi0 pi0 changed the title preserve headers for prerendered routes preserve headers / content type for prerendered routes Aug 16, 2023
@pi0 pi0 closed this as completed in #1587 Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants