From 3c1e49b451db54d0933491b33aa4a77b92e1d13d Mon Sep 17 00:00:00 2001 From: bennykok Date: Thu, 25 Jan 2024 19:34:40 +0800 Subject: [PATCH] fix: login issues --- web/src/db/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/db/db.ts b/web/src/db/db.ts index 2cd8d5d..9d7251e 100644 --- a/web/src/db/db.ts +++ b/web/src/db/db.ts @@ -5,7 +5,7 @@ import * as schema from "./schema"; const isDevContainer = process.env.REMOTE_CONTAINERS !== undefined; // if we're running locally -if (process.env.VERCEL_ENV !== "production") { +if (process.env.VERCEL_ENV !== "production" && process.env.VERCEL_ENV !== "preview") { // Set the WebSocket proxy to work with the local instance if (isDevContainer) { // Running inside a VS Code devcontainer