2 different domain
calling same next js SSR
build , but context provider
is taking any one domain's config
#66859
Unanswered
udayshankark-qp
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Same nextjs build called from 2 different domain, but prop passed to the context provider is taking any one domain's config.
So basically we have a requirement where based on domain name we need to fetch certain json to get the config, so we do that in layout.tsx file and then pass the config to the Client context provider.
So while debugging what I found was the config set in server side is proper on hitting on the 2 different domain simultaneously, but on the browser the both would go with any one domain's config.
But on refresh of the browser page it will take respective domain's config
Beta Was this translation helpful? Give feedback.
All reactions