diff --git a/.gitignore b/.gitignore index 8b44fabaf4..89a0794124 100644 --- a/.gitignore +++ b/.gitignore @@ -206,3 +206,6 @@ plugins.jsonl # mise mise.toml + +# Next.js build output +.next/ diff --git a/.vscode/launch.json b/.vscode/launch.json index cadf046355..d2e4ba5247 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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": ["/**"], - "console": "integratedTerminal" - } + "serverReadyAction": { + "action": "debugWithChrome", + "killOnServerStop": true, + "pattern": "- Local:.+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/web" + }, + "cwd": "${workspaceFolder}/web" + } ] } \ No newline at end of file