dragonroll/client/vite.config.js

26 lines
507 B
JavaScript
Raw Normal View History

2024-08-01 21:26:01 +00:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
2024-08-08 23:29:08 +00:00
'vue': 'vue/dist/vue.esm-bundler.js'
2024-08-01 21:26:01 +00:00
}
},
proxy: {
'/api': {
target: 'https://localhost:44305',
changeOrigin: true,
secure: false,
ws: true,
}
}
})