react-starter icon indicating copy to clipboard operation
react-starter copied to clipboard

Get requested domain?

Open triptec opened this issue 10 years ago • 0 comments

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..

triptec avatar Jun 26 '15 20:06 triptec