Skip to content

Commit b042145

Browse files
committed
Set NEXT_SERVER_EVAL_SOURCE_MAPS in dev script
1 parent 540b7b0 commit b042145

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contributing/core/vscode-debugger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Any Next.js app inside the monorepo can be debugged with these configurations.
1818
2. Enter the app dirname, e.g. `examples/hello-world` or `test/e2e/app-dir/app`.
1919
3. Select the `next` command from the presented options (`dev`, `build`, or `start`).
2020

21-
To see the changes you make to the Next.js codebase during development, you can run `NEXT_SERVER_EVAL_SOURCE_MAPS=1 pnpm dev` in the root directory, which will watch for file changes in `packages/next` and recompile the Next.js source code on any file saves.
21+
To see the changes you make to the Next.js codebase during development, you can run `pnpm dev` in the root directory, which will watch for file changes in `packages/next` and recompile the Next.js source code on any file saves.
2222

2323
## Breakpoints
2424

2525
When developing/debugging Next.js, you can set breakpoints anywhere in the `packages/next` source code that will stop the debugger at certain locations so you can examine the behavior. Read more about [breakpoints in the VS Code documentation](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_breakpoints).
2626

27-
To ensure that the original names are displayed in the "Variables" section, build the Next.js source code with `NEXT_SERVER_EVAL_SOURCE_MAPS=1` (see above).
27+
To ensure that the original names are displayed in the "Variables" section, build the Next.js source code with `NEXT_SERVER_EVAL_SOURCE_MAPS=1`. This is automatically applied when using `pnpm dev`.

packages/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"next": "./dist/bin/next"
7777
},
7878
"scripts": {
79-
"dev": "taskr",
79+
"dev": "NEXT_SERVER_EVAL_SOURCE_MAPS=1 taskr",
8080
"release": "taskr release",
8181
"build": "pnpm release",
8282
"prepublishOnly": "cd ../../ && turbo run build",

0 commit comments

Comments
 (0)