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