Skip to content

Commit f5049e2

Browse files
committed
del: localhost url
1 parent 7f1f073 commit f5049e2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/web/src/lib/fetch.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { treaty } from "@elysiajs/eden";
22
import type { App } from "@repo/api";
33

44
// Prefer Vite env if available, then process.env (for SSR/tests), else default.
5-
const VITE_URL = import.meta.env.VITE_API_BASE_URL as
6-
| string
7-
| undefined;
5+
const VITE_URL = import.meta.env.VITE_API_BASE_URL as string | undefined;
86
const NODE_URL = (process as any)?.env?.API_BASE_URL as string | undefined;
97

10-
let API_BASE_URL = VITE_URL ?? NODE_URL ?? "http://localhost:20257";
8+
let API_BASE_URL = VITE_URL ?? NODE_URL;
119

1210
// Ensure URL has protocol for fetch
1311
if (!/^https?:\/\//i.test(API_BASE_URL)) {
@@ -20,4 +18,4 @@ const app = treaty<App>(API_BASE_URL, {
2018
},
2119
});
2220

23-
export default app;
21+
export default app;

0 commit comments

Comments
 (0)