nextjs
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user