Skip to content

Commit

Permalink
remove proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
NookieGrey committed Feb 3, 2025
1 parent f70d196 commit 5626fd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 1 addition & 3 deletions src/services/auth/baseQueryWithReauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/, ""),
},
},
},
});

0 comments on commit 5626fd7

Please sign in to comment.