WGDashboard/src/static/app/vite.config.js

23 lines
398 B
JavaScript
Raw Normal View History

2024-01-08 12:23:57 -05:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import {proxy} from "./proxy.js";
2024-01-08 12:23:57 -05:00
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server:{
proxy: {
'/api': proxy
2024-01-08 12:23:57 -05:00
}
}
})