tubearchivist/frontend/vite.config.ts
2025-03-22 10:36:35 +01:00

22 lines
559 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import checker from 'vite-plugin-checker';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), checker({ typescript: true })],
base: '/',
server: {
host: true,
port: 3000, // This is the port which we will use in docker
// Thanks @sergiomoura for the window fix
// add the next lines if you're using windows and hot reload doesn't work
watch: {
usePolling: true,
},
},
build: {
sourcemap: true,
},
});