You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 31, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
You get a 500 with code in
/pages/api/index.js
but not if you put the same code in/pages/api/foo.js
To Reproduce
Put the following code in
/pages/api/index.js
:Deploy to Now, and go to
deployment.endpoint/api
, you'll get a 500 (complaining that res.setHeader is not a function).Hope I'm not missing something. Cheers!
The text was updated successfully, but these errors were encountered: