Skip to content

Commit f4dbbb9

Browse files
committed
runtime
1 parent 11e260d commit f4dbbb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mobile/api/gen/src/runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
*/
1414

1515
import Constants from "expo-constants";
16+
import { IS_DEVELOPMENT_BUILD } from "../../../utils/env.utils";
1617

1718
export const BASE_PATH = (
18-
(false
19+
(IS_DEVELOPMENT_BUILD
1920
? `http://${Constants.expoConfig?.hostUri?.split(":").shift()?.concat(":3000")}`
2021
: "https://api.offlinery.io") + "/v1"
2122
).replace(/\/+$/, "");

0 commit comments

Comments
 (0)