Better handling of dependencies. Display FastAPI status in Vue demo apps.

This commit is contained in:
Leo Vasanko
2026-01-17 03:28:41 +00:00
parent a28c4ec149
commit c6378e6abd
2 changed files with 200 additions and 49 deletions
+21 -19
View File
@@ -14,24 +14,26 @@ const backendUrl =
process.env.VITE_BACKEND_URL || "http://localhost:{{BACKEND_PORT}}";
const vitePort = parseInt(process.env.VITE_PORT || "{{VITE_PORT}}");
export default {
name: "fastapi-vite",
config: () => ({
server: {
host: "localhost",
port: vitePort,
strictPort: true,
proxy: {
"/api": {
target: backendUrl,
changeOrigin: false,
ws: true,
export default function fastapiVue() {
return {
name: "fastapi-vite",
config: () => ({
server: {
host: "localhost",
port: vitePort,
strictPort: true,
proxy: {
"/api": {
target: backendUrl,
changeOrigin: false,
ws: true,
},
},
},
},
build: {
outDir: "../{{MODULE_NAME}}/frontend-build",
emptyOutDir: true,
},
}),
};
build: {
outDir: "../{{MODULE_NAME}}/frontend-build",
emptyOutDir: true,
},
}),
};
}