diff --git a/frontend/vite.config.js b/frontend/vite.config.js index c753039..fb90a92 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -1,14 +1,16 @@ import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; +const API_PORT = process.env.SYNAPSE_API_PORT || "8013"; + export default defineConfig({ plugins: [vue()], server: { port: 5173, // dev: API ходит на локальный FastAPI без CORS-шума proxy: { - "/api": { target: "http://localhost:8000", changeOrigin: true }, - "/auth": { target: "http://localhost:8000", changeOrigin: true }, + "/api": { target: `http://localhost:${API_PORT}`, changeOrigin: true }, + "/auth": { target: `http://localhost:${API_PORT}`, changeOrigin: true }, }, }, build: {