-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Setup Nest for Angular routing #694
Comments
Take a look at this https://github.com/kamilmysliwiec/universal-nest |
Ah, I see. Thanks for the tip. However, it would be great if the documentation would have a section on setting up Nest with Angular, whether with or without Universal |
Since it has nothing to do with the framework, I'd recommend creating this kind of issues in the documentation repository. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
It is unclear which behaviour to use for serving an Angular app with routing. Should I use a
*
path controller as the last on in the array of controllers and do ares.sendFile
to serve theindex.html
file or should I use aHttpExceptionFilter
tores.sendFile
theindex.html
file whenever the path is unresolved?What is the motivation / use case for changing the behavior?
Using the
HttpExceptionFilter
filter seems like a logical choice, because of Angular needing access to other static files. This should be clearly laid out in the documentation in my opinion.Basically: Have a distinct pattern to serve an Angular application, since this framework is very friendly with Angular.
Environment
NestJS 5.0.0
The text was updated successfully, but these errors were encountered: