dev env changes

This commit is contained in:
Bradley Nelson 2022-12-31 05:35:20 +00:00
parent 0d3cbbc016
commit 82a63d1ed3
No known key found for this signature in database
GPG key ID: EB209B0420B6230F
2 changed files with 51 additions and 0 deletions

47
.vscode/launch.json vendored Normal file
View file

@ -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"
}
}
]
}

View file

@ -10,6 +10,10 @@ export default defineNuxtConfig({
target: "http://localhost:7745/api", target: "http://localhost:7745/api",
changeOrigin: true, changeOrigin: true,
}, },
"/a": {
target: "http://localhost:7745/a",
changeOrigin: true,
},
}, },
}, },
css: ["@/assets/css/main.css"], css: ["@/assets/css/main.css"],