Skip to content

Commit 7267503

Browse files
JoeyKhdwtfsayo
andauthored
upd: if VITE_SERVER_PORT is not defined, use default 3000 (#2433)
Co-authored-by: Sayo <hi@sayo.wtf>
1 parent 16f83b7 commit 7267503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/lib/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type UUID, type Character } from "@elizaos/core";
22

3-
const BASE_URL = `http://localhost:${import.meta.env.VITE_SERVER_PORT}`;
3+
const BASE_URL = `http://localhost:${import.meta.env.VITE_SERVER_PORT ?? 3000}`;
44

55
const fetcher = async ({
66
url,

0 commit comments

Comments
 (0)