HTML meta
viewport tag is not picking up viewport
export in layout.tsx
in Next.js?
#66843
Unanswered
lancejpollard
asked this question in
Help
Replies: 2 comments 1 reply
-
I'll have you know, too, that I have error pages at the top level like this too, and they are only working locally, not on Vercel. Locally, visiting a non-route goes to the "Not Found" error page and shows correctly. But on Vercel, it shows the default Vercel error page.
Is it something to do with my multi-site and localization (i18n) approach here that is throwing things off? Seems like a related problem to the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, did you find any solution ? We are facing the same issue... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am seeing this locally and in production on Vercel:
However, I have this in my
app/layout.tsx
:And that module is like this:
So I should be seeing this in the view-source HTML:
For reference, it is causing this UI issue in production.
My Next.js config is like this:
I have an ENV variable on Vercel which I set like
NEXT_PUBLIC_SITE=view next build
, so it can host multiple sites. Then I have this folder structure:So why wouldn't it be loading my viewport data? Do I need to put a layout in each site folder or something? Or export it explicitly in each
page.tsx
instead?Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions