react-starter
react-starter copied to clipboard
Get requested domain?
Hello, I'm trying to make an app that uses the domain/hostname to load different data, for the prerender I was thinking I could use req.get('host') but I can't really see where I should set it/pass it in.
Preferably I'd like to have it in the route like
<Route name="blog" path=":domain/blog/:id" handler={BlogPage} />
so I can get them in my props, obviously I know I can't but yeah..