From 19d41d7d4ea51c2e8beaab67fb996c1d346c4a41 Mon Sep 17 00:00:00 2001 From: YK <1811651+ykdojo@users.noreply.github.com> Date: Fri, 26 Aug 2022 22:32:02 -0700 Subject: [PATCH 1/2] Update debugging.md (--dev -> --save-dev for npm) Reference: https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file#adding-dependencies-to-a-packagejson-file-from-the-command-line --- docs/advanced-features/debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/debugging.md b/docs/advanced-features/debugging.md index a5252283d611..77dff63a0a40 100644 --- a/docs/advanced-features/debugging.md +++ b/docs/advanced-features/debugging.md @@ -90,7 +90,7 @@ Debugging server-side code here works much like debugging client-side code with ### Debugging on Windows -Windows users may run into an issue when using `NODE_OPTIONS='--inspect'` as that syntax is not supported on Windows platforms. To get around this, install the [`cross-env`](https://www.npmjs.com/package/cross-env) package as a development dependency (`--dev` with NPM or `-D` for Yarn) and replace the `dev` script with the following. +Windows users may run into an issue when using `NODE_OPTIONS='--inspect'` as that syntax is not supported on Windows platforms. To get around this, install the [`cross-env`](https://www.npmjs.com/package/cross-env) package as a development dependency (`--save-dev` with NPM or `-D` for Yarn) and replace the `dev` script with the following. ```json "dev": "cross-env NODE_OPTIONS='--inspect' next dev", From b2025996ab2da764657e9693c9c05ce5370f0bb7 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 29 Aug 2022 12:30:37 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/advanced-features/debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced-features/debugging.md b/docs/advanced-features/debugging.md index 77dff63a0a40..bdcb0a36be2b 100644 --- a/docs/advanced-features/debugging.md +++ b/docs/advanced-features/debugging.md @@ -90,7 +90,7 @@ Debugging server-side code here works much like debugging client-side code with ### Debugging on Windows -Windows users may run into an issue when using `NODE_OPTIONS='--inspect'` as that syntax is not supported on Windows platforms. To get around this, install the [`cross-env`](https://www.npmjs.com/package/cross-env) package as a development dependency (`--save-dev` with NPM or `-D` for Yarn) and replace the `dev` script with the following. +Windows users may run into an issue when using `NODE_OPTIONS='--inspect'` as that syntax is not supported on Windows platforms. To get around this, install the [`cross-env`](https://www.npmjs.com/package/cross-env) package as a development dependency (`-D` with `npm` and `yarn`) and replace the `dev` script with the following. ```json "dev": "cross-env NODE_OPTIONS='--inspect' next dev",