27 lines
506 B
JavaScript
27 lines
506 B
JavaScript
const { defineConfig } = require('vite')
|
|
const vue = require('@vitejs/plugin-vue')
|
|
const path = require('path')
|
|
|
|
module.exports = defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true
|
|
},
|
|
'/uploads': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|