Files
frontend/vite.config.ts

18 lines
543 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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,
},
},
},
});