Skip to content
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

Host / subdomain support #12

Closed
patie opened this issue May 14, 2018 · 1 comment
Closed

Host / subdomain support #12

patie opened this issue May 14, 2018 · 1 comment

Comments

@patie
Copy link

patie commented May 14, 2018

Is there planned support for host/subdomain?

@shekohex
Copy link
Member

Hi @patie , actually this out of the scope of nest-router goal
the router module is just a simple function that take some configurations and add some metadata on every module, the other work goes in nest/core it will also read that metadata and refactor the routes to it.

so back to your issue, until now there is no future plan to add support for vHosts/subdomains to this package.
but as nest is built in top of expressjs you could use one of these nice packages that do what you need:

https://github.com/expressjs/vhost
and the good docs for it: https://expressjs.com/en/resources/middleware/vhost.html
and also take a look at this nice one https://github.com/bmullan91/express-subdomain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants