1234567891011121314151617 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- server: {
- host: '0.0.0.0',
- proxy: {
- '^/api': {
- target: 'http://172.17.0.19:5680',
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, '/')
- }
- }
- }
- })
|