From 7267503c5a83650d7425dd6ea188951ee11ef57e Mon Sep 17 00:00:00 2001 From: Santi Date: Fri, 17 Jan 2025 16:00:55 +0100 Subject: [PATCH] upd: if VITE_SERVER_PORT is not defined, use default 3000 (#2433) Co-authored-by: Sayo --- client/src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib/api.ts b/client/src/lib/api.ts index 703a5181bf1..d24e69c8e92 100644 --- a/client/src/lib/api.ts +++ b/client/src/lib/api.ts @@ -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,