add nextjs to launch.json

This commit is contained in:
Ken Yasue
2025-04-01 17:56:49 +02:00
parent 6eea8a9d21
commit 46f818c027

52
.vscode/launch.json vendored
View File

@ -1,6 +1,24 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"name": "Next.js: Start Development Server",
"type": "node",
"request": "launch",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"dev"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"NODE_ENV": "development"
}
},
{ {
"name": "Debug Send Emails (No Previous Emails)", "name": "Debug Send Emails (No Previous Emails)",
"type": "node", "type": "node",
@ -110,6 +128,40 @@
"outFiles": [ "outFiles": [
"${workspaceFolder}/**/*.js" "${workspaceFolder}/**/*.js"
] ]
},
{
"name": "Import Customers from CSV",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": [
"--require",
"ts-node/register"
],
"args": [
"${workspaceFolder}/src/scripts/import-customers.ts",
"${input:csvFilePath}"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.scripts.json",
"NODE_ENV": "development"
},
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
],
"inputs": [
{
"id": "csvFilePath",
"type": "promptString",
"description": "Path to the CSV file to import",
"default": "./data/customers.csv"
} }
] ]
} }