Add a script to run devserver. Migrate to build and JS utils provided by fastapi-vue. Frontend directory renamed to frontend-build. Update Sanic, deprecations.

This commit is contained in:
2026-01-21 23:32:04 +00:00
parent 0d853032bf
commit ba6380e71e
10 changed files with 349 additions and 56 deletions
+2 -5
View File
@@ -7,11 +7,8 @@ import vue from '@vitejs/plugin-vue'
import svgLoader from 'vite-svg-loader'
import Components from 'unplugin-vue-components/vite'
// Development mode:
// bun run dev # Run frontend that proxies to dev_backend
// cista -l :8000 --dev # Run backend
const dev_backend = {
target: "http://localhost:8000",
target: process.env.CISTA_BACKEND_URL || "http://localhost:8989",
changeOrigin: false, // Use frontend "host" to match "origin" from browser
ws: true,
}
@@ -48,7 +45,7 @@ export default defineConfig({
}
},
build: {
outDir: "../cista/wwwroot",
outDir: "../cista/frontend-build",
emptyOutDir: true,
}
})