Skip to content

Instantly share code, notes, and snippets.

@luizhcrocha
Created September 4, 2022 23:17
Show Gist options
  • Save luizhcrocha/5116485e6b95310c6fcfe82b66519ce5 to your computer and use it in GitHub Desktop.
Save luizhcrocha/5116485e6b95310c6fcfe82b66519ce5 to your computer and use it in GitHub Desktop.
Basic vscode launch settings for Next.js
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev"
},
{
"name": "Next.js: debug client-side",
"type": "msedge",
"request": "launch",
"url": "http://localhost:3000"
},
{
"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": "debugWithEdge"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment