We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in dev, it sends the response with application/json which is expected
in prod it sends text/html which is unexpected
// create an api endpoint routes/test.ts:
routes/test.ts
import { APIEvent } from "@solidjs/start/server"; export function GET(event: APIEvent) { event.nativeEvent.respondWith(Response.json({ hello: "world" })); }
No response
The text was updated successfully, but these errors were encountered:
after checking again, it includes both content-types (in both dev and prod):
Sorry, something went wrong.
this bug doesn't happen if you return a Response:
return
import { APIEvent } from "@solidjs/start/server"; export function GET(event: APIEvent) { return Response.json({ hello: "world" }); }
No branches or pull requests
Duplicates
Latest version
Current behavior 😯
in dev, it sends the response with application/json which is expected
Expected behavior 🤔
in prod it sends text/html which is unexpected
Steps to reproduce 🕹
// create an api endpoint
routes/test.ts
:Context 🔦
No response
Your environment 🌎
The text was updated successfully, but these errors were encountered: