Skip to content

Commit

Permalink
Update launch script to match Next.js Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oBusk committed Apr 11, 2023
1 parent d95a518 commit 060b794
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,27 @@
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"name": "Next: Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"userDataDir": "${workspaceFolder}/.vscode/.chrome",
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js"
]
"command": "npm run dev"
},
{
"type": "node",
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"name": "Next: Node",
"runtimeExecutable": "${workspaceFolder}/node_modules/next/dist/bin/next",
"env": {
"NODE_OPTIONS": "--inspect"
},
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"<node_internals>/**/*.js"
],
"port": 9229,
"console": "integratedTerminal"
}
],
"compounds": [
"url": "http://localhost:3000"
},
{
"name": "Next: Full",
"configurations": ["Next: Node", "Next: Chrome"]
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}

0 comments on commit 060b794

Please sign in to comment.