From ba6b11ce6dbbbc3c0458365794b2a24a705312b0 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 12 Apr 2022 12:05:16 +0300 Subject: [PATCH] fix: reqToBasePath --- 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 65aa456..ddee0c1 100644 --- a/src/web/utils.ts +++ b/src/web/utils.ts @@ -3,7 +3,7 @@ import { IncomingMessage } from "http"; export const reqToBasePath = (req: IncomingMessage) => { if (process.env.NEXT_PUBLIC_VERCEL_URL) { console.log(process.env.NEXT_PUBLIC_VERCEL_URL); - return process.env.NEXT_PUBLIC_VERCEL_URL; + return `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`; } // we could just hardcode http://localhost:3000 here, but then `next dev -p ` would break