From 82a63d1ed3f1f7a6b9c32790a48002237160e904 Mon Sep 17 00:00:00 2001 From: Bradley Nelson Date: Sat, 31 Dec 2022 05:35:20 +0000 Subject: [PATCH] dev env changes --- .vscode/launch.json | 47 +++++++++++++++++++++++++++++++++++++++++ frontend/nuxt.config.ts | 4 ++++ 2 files changed, 51 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4159efc --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,47 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "compounds": [ + { + "name": "Full Stack", + "configurations": ["Launch Backend", "Launch Frontend"], + "stopAll": true + } + ], + "configurations": [ + { + "name": "Launch Backend", + "type": "go", + "request": "launch", + "mode": "debug", + "program": "${workspaceRoot}/backend/app/api/", + "args": [], + "env": { + "HBOX_DEMO": "true", + "HBOX_LOG_LEVEL": "debug", + "HBOX_DEBUG_ENABLED": "true", + "HBOX_STORAGE_DATA": "${workspaceRoot}/backend/devData", + "HBOX_STORAGE_SQLITE_URL": "${workspaceRoot}/backend/devData/homebox.db?_fk=1" + }, + }, + { + "name": "Launch Frontend", + "type": "node", + "request": "launch", + "runtimeExecutable": "pnpm", + "runtimeArgs": [ + "run", + "dev" + ], + "cwd": "${workspaceFolder}/frontend", + "serverReadyAction": { + "action": "debugWithChrome", + "pattern": "Local: http://localhost:([0-9]+)", + "uriFormat": "http://localhost:%s", + "webRoot": "${workspaceFolder}/frontend" + } + } + ] +} \ No newline at end of file diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index cba18a2..a9ed86d 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -10,6 +10,10 @@ export default defineNuxtConfig({ target: "http://localhost:7745/api", changeOrigin: true, }, + "/a": { + target: "http://localhost:7745/a", + changeOrigin: true, + }, }, }, css: ["@/assets/css/main.css"],