перенос ui
This commit is contained in:
@@ -2,22 +2,18 @@ import react from '@vitejs/plugin-react-swc'
|
||||
import path from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
'@widgets': path.resolve('src/widgets'),
|
||||
'@features': path.resolve('src/features'),
|
||||
'@entities': path.resolve('src/entities'),
|
||||
shared: path.resolve(__dirname, 'shared'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0', // Открыть для всех IP адресов
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/api': {
|
||||
//192.168.2.66
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, ''),
|
||||
|
||||
Reference in New Issue
Block a user