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
mise.toml mise.toml
# Next.js build output
.next/

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