1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-03 06:10:14 +02:00
WGDashboard/src/static/app/vite.config.js
2024-01-11 13:46:08 -05:00

23 lines
398 B
JavaScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import {proxy} from "./proxy.js";
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
}
}
})