Skip to content

Commit

Permalink
test console log
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitb35 committed Jan 12, 2024
1 parent 057c639 commit 4b481bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ function MyApp({
process.env.VERCEL_URL &&
typeof window !== "undefined"
) {
console.log(process.env.VERCEL_URL);
console.log(window.location.hostname);
if (process.env.VERCEL_URL !== window.location.hostname) {
router.replace(`https://${process.env.VERCEL_URL}`);
}
Expand Down

0 comments on commit 4b481bd

Please sign in to comment.