diff --git a/docs/deployment.md b/docs/deployment.md index 82d19a083a95a..ef33914933cc0 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -139,11 +139,13 @@ Sometimes you might want to run some cleanup code on process signals like `SIGTE You can do that by setting the env variable `NEXT_MANUAL_SIG_HANDLE` to `true` and then register a handler for that signal inside your `_document.js` file. Please note that you need to register env variable directly in the system env variable, not in the `.env` file. +> **Note**: Manual signal handling is not available in `next dev`. + ```json // package.json { "scripts": { - "dev": "NEXT_MANUAL_SIG_HANDLE=true next dev", + "dev": "next dev", "build": "next build", "start": "NEXT_MANUAL_SIG_HANDLE=true next start" }