Skip to content

Commit

Permalink
Startup Error: ENV misconfig (#2378)
Browse files Browse the repository at this point in the history
* fix

* Update info.json

---------

Co-authored-by: Sero <[email protected]>
Co-authored-by: Sayo <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2025
1 parent afaca20 commit 984bb33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,12 @@ const checkPortAvailable = (port: number): Promise<boolean> => {
});
};

const hasValidRemoteUrls = () => {
const remoteUrls = process.env.REMOTE_CHARACTER_URLS;
return remoteUrls && remoteUrls !== "" && remoteUrls.startsWith('http');
};

const hasValidRemoteUrls = () =>
process.env.REMOTE_CHARACTER_URLS &&
process.env.REMOTE_CHARACTER_URLS !== "" &&
process.env.REMOTE_CHARACTER_URLS.startsWith("http");


const startAgents = async () => {
const directClient = new DirectClient();
Expand Down

0 comments on commit 984bb33

Please sign in to comment.