adds env to debug scripts
This commit is contained in:
10
.vscode/launch.json
vendored
10
.vscode/launch.json
vendored
@@ -13,6 +13,9 @@
|
|||||||
"${workspaceRoot}/node_modules/.bin/jest",
|
"${workspaceRoot}/node_modules/.bin/jest",
|
||||||
"--runInBand"
|
"--runInBand"
|
||||||
],
|
],
|
||||||
|
"env": {
|
||||||
|
"PAYLOAD_CONFIG_PATH": "demo/payload.config.js"
|
||||||
|
},
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"internalConsoleOptions": "neverOpen",
|
"internalConsoleOptions": "neverOpen",
|
||||||
"port": 9229
|
"port": 9229
|
||||||
@@ -21,8 +24,13 @@
|
|||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Program",
|
"name": "Launch Program",
|
||||||
|
"env": {
|
||||||
|
"PAYLOAD_CONFIG_PATH": "demo/payload.config.js"
|
||||||
|
},
|
||||||
"program": "${workspaceFolder}/demo/server.js",
|
"program": "${workspaceFolder}/demo/server.js",
|
||||||
"skipFiles": ["<node_internals>/**"]
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
|
|||||||
Reference in New Issue
Block a user