Skip to content

Commit

Permalink
Merge pull request #2 from ChasmNetwork/hotfix/default-to-wss
Browse files Browse the repository at this point in the history
default to wss if not provided
  • Loading branch information
rekttdoteth authored Jul 23, 2024
2 parents 6dc3f00 + d3c0e80 commit 7bd9e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const apiKeyValidator = (type: string, providers: LLMProvider[]) =>
});

const PROVIDERS = process.env.PROVIDERS?.split(",") as LLMProvider[];
const handshakeProtocol = process.env.NODE_ENV !== "production" ? "ws" : "wss";
const handshakeProtocol = process.env.NODE_ENV !== "local" ? "wss" : "ws";

// Validate and clean environment variables
export const env = cleanEnv(process.env, {
Expand Down

0 comments on commit 7bd9e2d

Please sign in to comment.