tlsync/vite.config.mts
2025-08-23 13:04:42 +00:00

16 lines
404 B
TypeScript

import react from '@vitejs/plugin-react-swc'
import path from 'path'
import { defineConfig } from 'vite'
export default defineConfig(() => ({
plugins: [react({ tsDecorators: true })],
root: path.join(__dirname, 'src/client'),
publicDir: path.join(__dirname, 'public'),
server: {
port: 5000,
host: '0.0.0.0', // Expose the server to the network
},
optimizeDeps: {
exclude: ['assets'],
},
}))