This commit is contained in:
Tikhon Vodyanov 2025-08-02 13:24:06 +02:00
parent 118965e0c3
commit e3d416ff0e
30 changed files with 6864 additions and 0 deletions

27
frontend/vite.config.js Normal file
View file

@ -0,0 +1,27 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
server: {
proxy: {
'/api': {
target: 'http://10.100.1.111:5000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})