Skip to content

Commit

Permalink
Updated port for msw
Browse files Browse the repository at this point in the history
  • Loading branch information
agadzinski93 committed Sep 9, 2024
1 parent 3a1aa7e commit 52c9419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/redux/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';

const PORT = import.meta.env.VITE_PROXY_TARGET_PORT;
const PORT = import.meta.env.VITE_PROXY_TARGET_PORT || 3000;
const BASE_PATH = (import.meta.env.PROD) ? '/api/v1' : `http://localhost:${PORT}/api/v1`

const api = createApi({
Expand Down

0 comments on commit 52c9419

Please sign in to comment.