Files
website/vite.config.ts
T
2025-02-05 20:32:47 -05:00

22 lines
477 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
publicDir: './src/public',
server: {
allowedHosts: [
"alexav.gg",
"www.alexav.gg"
]
},
build: {
copyPublicDir: !!process.env.SSR,
ssr: !!process.env.SSR,
outDir: process.env.SSR ? 'dist/server' : 'dist/client',
rollupOptions: {
input: process.env.SSR ? './server.ts' : './index.html'
}
}
})