fix: login issues

This commit is contained in:
bennykok 2024-01-25 19:34:40 +08:00
parent 3d2eacccc9
commit 3c1e49b451

View File

@ -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