Grabbing window.location.origin in ssr best ways?
this might be a dumb question but my page is using ssr to render but i need to pass window.location.origin but that wouldn't work from the server, right? any workarounds people might know? Or does it make sense to just store my website's url in an env var?
I did with this workaround using a serverfn, not sure if it's the best way
I did with this workaround using a serverfn, not sure if it's the best way