diff options
Diffstat (limited to 'frontend/app/.server/api/client.ts')
| -rw-r--r-- | frontend/app/.server/api/client.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/app/.server/api/client.ts b/frontend/app/.server/api/client.ts index 12f2fc6..93a49f6 100644 --- a/frontend/app/.server/api/client.ts +++ b/frontend/app/.server/api/client.ts @@ -1,4 +1,9 @@ import createClient from "openapi-fetch"; import type { paths } from "./schema"; -export const apiClient = createClient<paths>({ baseUrl: "http://api-server/" }); +export const apiClient = createClient<paths>({ + baseUrl: + process.env.NODE_ENV === "development" + ? "http://localhost:8002/" + : "http://api-server/", +}); |
