Replies: 1 comment 1 reply
-
That information is not accessible in the Node.js environment that |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I have a requirement to have a random string subdomain with my site that I need to validate and get information about prior to rendering in SSR:
sampletext.website.com -> I need to be able to get "sampletext" during SSR, so I can do a apollo query, validate if its a value I'm intending to see, and either redirect the user to the subdomainless website.com, or pass the apollo query results to the rendered component.
I've had a look at the returned props (in local dev with DEV_SSR enabled) in replaceRenderer and wrapPageElement, and I only get the relative path: "/" at most, never the full url with the subdomain.
Is there a way to get the request headers which has the request URL at some point?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions