Next.js Discord

Discord Forum

Force app router to quit

Unanswered
Willow shoot sawfly posted this in #help-forum
Open in Discord
Willow shoot sawflyOP
I have a route that calls process.exit(1), but this doesn't stop the server; it just returns a "socket hangup". Is there a way to force the main server to exit?

1 Reply

are you self hosting?