-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router: domain-based routing #214
Comments
Or should this issue be moved to @solidjs/router instead? |
Yeah I think that it should be moved to the router |
So I understand you have the same site more or less on different domains, and you would like certain routes to only appear on those Domains. The route definition is just JSON ultimately even though we use components, so it could be conditionally constructed I imagine. Unless I'm misunderstanding the use case. I guess on the server you want to use the request to determine if the routes should be registered and in the client the current URL in the browser? |
Domains might have quite different sets of urls, actually. One case is "search." subdomain which would handle a separate set of "pages" I talk about generic ability to match over domains in addition to the current ability of matching over paths |
It would be great to have support for domain-based routing.
I need to be able to server different pages on different domains.
Could it be configured via additional sub-component of
<Routes>
maybe?The text was updated successfully, but these errors were encountered: