20 lines
446 B
JavaScript
20 lines
446 B
JavaScript
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default {
|
|
base: './',
|
|
plugins: [vue()],
|
|
optimizeDeps: {
|
|
include: ['schart.js']
|
|
},
|
|
server:{
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8011',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
// rewrite: (path) => path.replace(/^/api, '')
|
|
|
|
},
|
|
}
|
|
}
|
|
} |