Skip to content

Conversation

novascreen
Copy link
Contributor

Fixes #19693

Enables manually triggering graceful shutdown that's handled by the cleanup function in start-server.

Previously we could manually handle SIGINT/SIGTERM events, but not trigger the cleanup that's doing the graceful shutdown of the server. That meant we would have to abruptly kill the server or still use a custom server.

@ijjk ijjk added Documentation Related to Next.js' official documentation. type: next labels Sep 10, 2025
@ijjk
Copy link
Member

ijjk commented Sep 10, 2025

Allow CI Workflow Run

  • approve CI run for commit: b879083

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Copy link

@vmaineng vmaineng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @novascreen

Great work on this feature!

I saw there were changes to start-server.ts file and was curious if some tests should be implemented to ensure NEXT_MANUAL_SIG_HANDLE environment variable and the cleanup flow works as intended.

Please let me know what your thoughts are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants