mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2025-09-05 11:18:38 +02:00
27 lines
564 B
TypeScript
27 lines
564 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import routify from '@roxi/routify/vite-plugin'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
routify({/* config */ }),
|
|
tailwindcss(),
|
|
svelte()
|
|
],
|
|
server: {
|
|
host: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://10.10.39.145:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/socket.io': {
|
|
target: 'http://10.10.39.145:3000',
|
|
ws: true,
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
}
|
|
})
|