fix: reqToBasePath
This commit is contained in:
parent
25fad77f25
commit
ba6b11ce6d
|
@ -3,7 +3,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) {
|
||||||
console.log(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 <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