26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { startupSocketIOServer } from './src/lib/functions/websocketConfig';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
{
|
|
name: 'integratedSocketIOServer',
|
|
configureServer(server) {
|
|
startupSocketIOServer(server.httpServer);
|
|
},
|
|
configurePreviewServer(server) {
|
|
startupSocketIOServer(server.httpServer);
|
|
},
|
|
},
|
|
],
|
|
server: {
|
|
allowedHosts: true,
|
|
},
|
|
build: {
|
|
minify: 'esbuild',
|
|
chunkSizeWarningLimit: 500,
|
|
},
|
|
});
|