Skip to content

Commit 7b2be47

Browse files
author
Alex Patterson
committed
adjust middleware url
1 parent d618008 commit 7b2be47

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎lib/utils.ts‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ export const unpluralize = (_type: string) => {
2222
};
2323

2424
export const publicURL = () => {
25-
26-
console.debug(process.env.NEXT_PUBLIC_VERCEL_ENV)
27-
console.debug(process.env.NEXT_PUBLIC_VERCEL_URL)
28-
console.debug(process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL)
29-
console.debug(process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL)
30-
31-
return process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
32-
? "https://" + process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
25+
return process.env.NEXT_PUBLIC_VERCEL_URL
26+
? "https://" + process.env.NEXT_PUBLIC_VERCEL_URL
3327
: "http://localhost:3000";
3428
};

0 commit comments

Comments
 (0)