fix: NEXT_PUBLIC_VERCEL_URL usage
This commit is contained in:
parent
473a372515
commit
846e235e0c
|
@ -2,7 +2,7 @@ import { IncomingMessage } from "http";
|
||||||
|
|
||||||
export const reqToBasePath = (req: IncomingMessage) => {
|
export const reqToBasePath = (req: IncomingMessage) => {
|
||||||
if (process.env.NEXT_PUBLIC_VERCEL_URL) {
|
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 <CUSTOM_PORT>` would break
|
// we could just hardcode http://localhost:3000 here, but then `next dev -p <CUSTOM_PORT>` would break
|
||||||
|
|
Loading…
Reference in New Issue
Block a user