Update fastapi-vue-setup 1.6.1 with major changes.

This commit is contained in:
2026-09-18 03:22:54 +00:00
parent 66c2a9bf07
commit 3e4f77ba93
11 changed files with 217 additions and 275 deletions
+5 -5
View File
@@ -8,11 +8,11 @@
* - Disables Vite's screen clearing on startup
*
* Options:
* paths - Array of paths to proxy (default: ["/api"])
* paths - Array of paths to proxy (default: ['/api'])
*/
export default function fastapiVue({ paths = ["/api"] } = {}) {
const backendUrl = process.env.PASKIA_BACKEND_URL || "http://localhost:4402"
export default function fastapiVue({ paths = ['/api'] } = {}) {
const backendUrl = process.env.PASKIA_BACKEND_URL || 'http://localhost:4402'
// Build proxy configuration for each path
const proxy = {}
@@ -25,12 +25,12 @@ export default function fastapiVue({ paths = ["/api"] } = {}) {
}
return {
name: "vite-plugin-fastapi-paskia",
name: 'vite-plugin-fastapi-paskia',
config: () => ({
clearScreen: false,
server: { proxy },
build: {
outDir: "../paskia/frontend-build",
outDir: '../paskia/frontend-build',
emptyOutDir: true,
},
}),