aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 15:58:10 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 15:58:10 +0900
commit05c44c895625d9dc4813ecbe53edefc3d8bd9b6d (patch)
tree718a8138ac6a9d1b343c1dfd87d8ca9494191e80 /frontend
parentac732635747828dbe20c657362eba10840a039d2 (diff)
downloadiosdc-japan-2024-albatross-05c44c895625d9dc4813ecbe53edefc3d8bd9b6d.tar.gz
iosdc-japan-2024-albatross-05c44c895625d9dc4813ecbe53edefc3d8bd9b6d.tar.zst
iosdc-japan-2024-albatross-05c44c895625d9dc4813ecbe53edefc3d8bd9b6d.zip
feat(dev): make Remix HMR work
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/.server/api/client.ts7
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/",
+});