itcloud/frontend/vite.config.ts

22 lines
413 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 5173,
allowedHosts: [
'itcloud.itqop.dev',
'localhost',
'127.0.0.1',
'192.168.1.8', // твой LAN-IP
],
},
build: {
outDir: '../static',
emptyOutDir: true,
},
})