20 lines
407 B
TypeScript
20 lines
407 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: "/",
|
|
plugins: [react()],
|
|
preview: {
|
|
port: 8084,
|
|
strictPort: true,
|
|
host: '0.0.0.0',
|
|
allowedHosts: ['matrix.halfbinary.net']
|
|
},
|
|
server: {
|
|
port: 8084,
|
|
strictPort: true,
|
|
host: true,
|
|
//origin: "http://0.0.0.0:8084",
|
|
}
|
|
}) |