From 846e235e0c28b0cbffeaa37d9beb3ac998f57e5e Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 12 Apr 2022 11:37:17 +0300 Subject: [PATCH] fix: NEXT_PUBLIC_VERCEL_URL usage --- src/web/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/utils.ts b/src/web/utils.ts index c829859..2dcd71e 100644 --- a/src/web/utils.ts +++ b/src/web/utils.ts @@ -2,7 +2,7 @@ import { IncomingMessage } from "http"; export const reqToBasePath = (req: IncomingMessage) => { if (process.env.NEXT_PUBLIC_VERCEL_URL) { - return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`; + return process.env.NEXT_PUBLIC_VERCEL_URL; } // we could just hardcode http://localhost:3000 here, but then `next dev -p ` would break