Skip to content

Instantly share code, notes, and snippets.

@akshayjai1
Created August 13, 2023 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshayjai1/0795800857bff6ca9f80f65f50844b36 to your computer and use it in GitHub Desktop.
Save akshayjai1/0795800857bff6ca9f80f65f50844b36 to your computer and use it in GitHub Desktop.
Next JS Debug configuration
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev:local"
},
{
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run clean-dev:local",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment