1
0
Fork 0
activist/vite.config.ts

29 lines
595 B
TypeScript
Raw Normal View History

2024-11-16 11:40:53 -05:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
2024-11-24 20:50:39 -05:00
// vueDevTools(),
2024-11-16 11:40:53 -05:00
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
2024-11-24 20:50:39 -05:00
server: {
proxy: {
'/login': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: false,
// rewrite: (path) => path.replace(/^\/api/, '')
},
},
},
2024-11-16 11:40:53 -05:00
})