- Replace getRawBody with direct req.body usage since express.json() middleware already parses it - Add debugging support with --inspect flag for dev scripts - Add VS Code launch configurations for debugging The issue was that getRawBody tried to read an already-consumed stream. Since express.json() middleware is applied globally, we can directly use req.body instead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
No EOL
755 B
JSON
32 lines
No EOL
755 B
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Dev Server",
|
|
"port": 9229,
|
|
"restart": true,
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/**",
|
|
"!**/node_modules/**"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Debug Dev Server",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "dev"],
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"sourceMaps": true,
|
|
"resolveSourceMapLocations": [
|
|
"${workspaceFolder}/**",
|
|
"!**/node_modules/**"
|
|
],
|
|
"console": "integratedTerminal"
|
|
}
|
|
]
|
|
} |