You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code's is intended to make users access the application from the official Vercel deployment URL for non-production environments
However, it is not reachable on the deployed build, and serves no purpose for local development. It should either be corrected (if needed), or removed.
// pages/_app.tsx
if (process.env.NODE_ENV !== 'production') {
if (process.env.VERCEL_URL && typeof window !== 'undefined') {
if (process.env.VERCEL_URL !== window.location.hostname) {
router.replace(`https://${process.env.VERCEL_URL}`);
}
}
}
The text was updated successfully, but these errors were encountered:
The following code's is intended to make users access the application from the official Vercel deployment URL for non-production environments
However, it is not reachable on the deployed build, and serves no purpose for local development. It should either be corrected (if needed), or removed.
The text was updated successfully, but these errors were encountered: