diff --git a/.vscode/launch.json b/.vscode/launch.json index f6b35a0..b75f472 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,15 +1,34 @@ { - // 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": [ - { - "type": "chrome", - "request": "launch", - "name": "Launch Chrome against localhost", - "url": "http://localhost:3000", - "webRoot": "${workspaceFolder}" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Next.js: debug server-side", + "port": 9230, + "request": "attach", + "skipFiles": [ + "/**" + ], + "type": "node", + "sourceMapPathOverrides": { + "/turbopack/[project]/*": "${webRoot}/*" + } + }, + { + "type": "chrome", + "request": "launch", + "name": "Next.js: debug client-side", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}", + "sourceMapPathOverrides": { + "/turbopack/[project]/*": "${webRoot}/*" + } + } + ], + "compounds": [ + { + "name": "Next.js: debug full stack", + "configurations": ["Next.js: debug client-side", "Next.js: debug server-side"], + "stopAll": true + } + ] } \ No newline at end of file