chore: update .gitignore to include Next.js build output and modify VSCode launch configurations for improved debugging

pull/20668/head
GuanMu 12 months ago
parent d85aa06f89
commit 6083cc794a

3
.gitignore vendored

@ -206,3 +206,6 @@ plugins.jsonl
# mise
mise.toml
# Next.js build output
.next/

@ -1,7 +1,6 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask API",
"type": "debugpy",
@ -9,12 +8,15 @@
"module": "flask",
"env": {
"FLASK_APP": "app.py",
"FLASK_DEBUG": "1"
"FLASK_ENV": "development",
"GEVENT_SUPPORT": "True"
},
"args": [
"run",
"--host=0.0.0.0",
"--port=5001"
"--port=5001",
"--no-debugger",
"--no-reload"
],
"jinja": true,
"justMyCode": true,
@ -22,16 +24,19 @@
"python": "${workspaceFolder}/api/.venv/bin/python"
},
{
"name": "Python: Celery Worker",
"name": "Python: Celery Worker (Solo)",
"type": "debugpy",
"request": "launch",
"module": "celery",
"env": {
"GEVENT_SUPPORT": "True"
},
"args": [
"-A",
"app.celery",
"worker",
"-P",
"gevent",
"solo",
"-c",
"1",
"-Q",
@ -39,18 +44,25 @@
"--loglevel",
"INFO"
],
"justMyCode": false,
"cwd": "${workspaceFolder}/api",
"python": "${workspaceFolder}/api/.venv/bin/python"
},
{
"name": "Web: Debug",
"name": "Next.js: debug full stack",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/web",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["dev"],
"program": "${workspaceFolder}/web/node_modules/next/dist/bin/next",
"runtimeArgs": ["--inspect"],
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal"
}
"serverReadyAction": {
"action": "debugWithChrome",
"killOnServerStop": true,
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"webRoot": "${workspaceFolder}/web"
},
"cwd": "${workspaceFolder}/web"
}
]
}
Loading…
Cancel
Save