Skip to content

Commit

Permalink
default to wss if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rekttdoteth committed Jul 22, 2024
1 parent 6dc3f00 commit d3c0e80
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 d3c0e80

Please sign in to comment.