You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
507 B
TypeScript

// vite.config.ts
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import { fileURLToPath } from 'node:url';
export default defineConfig({
server: {
proxy: {
'/socket.io': {
target: 'http://localhost',
changeOrigin: true,
ws: true
}
}
},
plugins: [solidPlugin()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
});