19 lines
502 B
JavaScript
Executable File
19 lines
502 B
JavaScript
Executable File
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import svgr from 'vite-plugin-svgr'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), svgr()],
|
|
server: {
|
|
host: true,
|
|
allowedHosts: ['dev.msf.enode', 'demo-msf.kis-npo.ru'],
|
|
// proxy: {
|
|
// '/api': {
|
|
// target: 'http://192.168.2.39:3000',
|
|
// changeOrigin: true,
|
|
// rewrite: (path) => path.replace(/^\/api/, '') //
|
|
// }
|
|
// },
|
|
}
|
|
}); |