Skip to content

Commit

Permalink
upd: if VITE_SERVER_PORT is not defined, use default 3000 (#2433)
Browse files Browse the repository at this point in the history
Co-authored-by: Sayo <[email protected]>
  • Loading branch information
JoeyKhd and wtfsayo authored Jan 17, 2025
1 parent 16f83b7 commit 7267503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type UUID, type Character } from "@elizaos/core";

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

const fetcher = async ({
url,
Expand Down

0 comments on commit 7267503

Please sign in to comment.