diff --git a/src/services/auth/baseQueryWithReauth.ts b/src/services/auth/baseQueryWithReauth.ts index 2633512..ae96031 100644 --- a/src/services/auth/baseQueryWithReauth.ts +++ b/src/services/auth/baseQueryWithReauth.ts @@ -15,9 +15,7 @@ import type { RootState } from "../../store"; // Исходный fetchBaseQuery const rawBaseQuery = fetchBaseQuery({ mode: "cors", - baseUrl: import.meta.env.PROD - ? "https://194.67.125.199:8443/" - : "https://frontend-wmyr.onrender.com/api", + baseUrl: "https://194.67.125.199:8443/", credentials: "include", prepareHeaders: (headers, api) => { const state = api.getState() as RootState; diff --git a/vite.config.ts b/vite.config.ts index 9a8f1c9..9be4769 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,13 +12,5 @@ export default defineConfig({ port: 8004, clientPort: 8007, }, - proxy: { - "/api": { - target: "https://194.67.125.199:8443/", - changeOrigin: true, - secure: false, - rewrite: (path) => path.replace(/^\/api/, ""), - }, - }, }, });