You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referring to an issue that I have incorrectly placed in the framework repo.
I'm submitting a...
[ ] Regression
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
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 a res.sendFile to serve the index.html file or should I use a HttpExceptionFilter to res.sendFile the index.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:
Referring to an issue that I have incorrectly placed in the framework repo.
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: