Files
mediahive/frontend/vite.config.ts
T
LeoVasanko 8586bd26e1 Remove PWA/SW and fix blocking startup I/O
- 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.
2026-05-24 19:01:13 +00:00

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,
},
}));