Subdomain re-render on app root #75696
Unanswered
WilliamConsumer
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Project structure: The project needs to work with dynamic subdomains, so the route could be something like www.domain1.site.com.
I’ve created a default Next.js structure and started handling the subdomain path in middleware, and it worked fine.
Problem: With this structure, if I check the template.tsx or layout.tsx, it is being called twice. If I remove the subdomain from the URL, it is only called once.
How can I fix this?
v14.2.13
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions