We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
I am creating a site in Next.JS and my server in Express and I am doing rewrite inside next.config.js pointing to my server.
next.config.js
const nextConfig = { async rewrites() { return [ { source: "/api/:path*", destination: `${server.url}api/:path*` }, ]; }, };
But there's a problem, I can't make a request to my server and the response takes longer than 30 seconds, because the following error appears:
30 seconds
Error: Socket hang up
Also happens if I am using for example Socket.IO, where this error appears in the console.
Checking where the possible problem is, I realized it is on this lines:
next.js/packages/next/server/next-server.ts
Lines 486 to 492 in 0de109b
where proxyTimeout is being limited to 30 seconds.
proxyTimeout
Thinking about a solution, I believe it should be possible to configure proxyTimeout.
Related issues: #36251
Related discussions: #24805
N/A
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature you'd like to request
I am creating a site in Next.JS and my server in Express and I am doing rewrite inside
next.config.js
pointing to my server.But there's a problem, I can't make a request to my server and the response takes longer than
30 seconds
, because the following error appears:Error: Socket hang up
Also happens if I am using for example Socket.IO, where this error appears in the console.
Describe the solution you'd like
Checking where the possible problem is, I realized it is on this lines:
next.js/packages/next/server/next-server.ts
Lines 486 to 492 in 0de109b
where
proxyTimeout
is being limited to30 seconds
.Thinking about a solution, I believe it should be possible to configure
proxyTimeout
.Related issues:
#36251
Related discussions:
#24805
Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered: