feat(frontend): initialize Vue 3 + Vite project structure
This commit is contained in:
17
vite.config.ts
Normal file
17
vite.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
// <-- ДОБАВЬТЕ ЭТОТ БЛОК
|
||||
proxy: {
|
||||
// Проксируем все запросы, начинающиеся с /api, /authserver, /sessionserver
|
||||
"^/api|/authserver|/sessionserver": {
|
||||
target: "http://localhost:8080", // Адрес вашего локального бэкенда
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user