26 lines
510 B
TypeScript
26 lines
510 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: '/admin/',
|
|
server: {
|
|
port: 5173,
|
|
allowedHosts: ['.coder.ia-innovacion.work', 'localhost'],
|
|
proxy: {
|
|
'/admin/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
'/v1': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
}
|
|
})
|