- Remove vite-plugin-pwa and all service worker code. The app no longer registers a service worker; legacy SWs are unregistered on load. - Move snapshot parsing (thousands of sync Path.exists() calls) into a thread pool via asyncio.to_thread() so the health check responds immediately on startup. - Wrap aiopathlib AsyncPath.iterdir() (sync os.scandir under the hood) in asyncio.to_thread() in scanner and scanning modules so directory walks do not monopolize the event loop.
19 lines
358 B
TypeScript
19 lines
358 B
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import fastapiVue from './vite-plugin-fastapi.js'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(async () => ({
|
|
plugins: [
|
|
fastapiVue(),
|
|
vue(),
|
|
],
|
|
|
|
// Vite dev server options
|
|
clearScreen: false,
|
|
server: {
|
|
port: 8420,
|
|
strictPort: true,
|
|
},
|
|
}));
|