Skip to content

Instantly share code, notes, and snippets.

@wickdninja
Last active June 28, 2022 06:09
Show Gist options
  • Save wickdninja/eeabefa3d38e545edc3dec673c6b5720 to your computer and use it in GitHub Desktop.
Save wickdninja/eeabefa3d38e545edc3dec673c6b5720 to your computer and use it in GitHub Desktop.
VS Code launch.json for NextJS
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "yarn dev",
"name": "yarn dev",
"request": "launch",
"type": "node-terminal"
},
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"args": [
"dev"
],
"name": "Next Dev",
"program": "${workspaceFolder}/node_modules/next/dist/bin/next",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment