Possible to get the browser/request URL in a hook? #1802
TRiBotWillB
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a hook on 'render:html' because I want to pull in some theme data based on the subdomain and set some CSS variables (see script below). Locally, I am using
getHeader
to pull in host header, but when run inside Docker that is simply set to 'localhost:3000'. Is there a better way of getting the request URL?Beta Was this translation helpful? Give feedback.
All reactions