Files
Market_Assistant/frontend/vite.config.ts
T

16 lines
444 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';
// Dev-сервер (:5173) с прокси /api -> backend Fastify (:8000), без CORS.
// host 127.0.0.1 — явно (иначе vite v8 биндится только на IPv6 ::1).
export default defineConfig({
plugins: [vue()],
server: {
host: '127.0.0.1',
port: 5173,
proxy: {
'/api': { target: 'http://127.0.0.1:8000' },
},
},
});