fix: gateway-relay falls back to VITE_WS_TOKEN env var
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
* (BetterAuth) (relay) (token auth)
|
* (BetterAuth) (relay) (token auth)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const GATEWAY_URL = process.env.GATEWAY_WS_URL || "wss://hammer.donovankelly.xyz";
|
const GATEWAY_URL = process.env.GATEWAY_WS_URL || process.env.VITE_WS_URL || "wss://hammer.donovankelly.xyz";
|
||||||
const GATEWAY_TOKEN = process.env.GATEWAY_WS_TOKEN || "";
|
const GATEWAY_TOKEN = process.env.GATEWAY_WS_TOKEN || process.env.VITE_WS_TOKEN || "";
|
||||||
|
|
||||||
type GatewayState = "disconnected" | "connecting" | "connected";
|
type GatewayState = "disconnected" | "connecting" | "connected";
|
||||||
type MessageHandler = (msg: any) => void;
|
type MessageHandler = (msg: any) => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user