1 year ago
#7238
O.MeeKoh
How to serve Angular application from .NET 5 server and use Server Side Rendering (SSR) or Pre-rendering?
I've spent considerable amount of time on google trying to find some documentation on how to accomplish just that: Server Angular project from .NET 5 server and use Server Side Rendering or Pre-rendering.
I have set up my Angular application for SSR and Pre-rendering and I can accomplish all of that locally by running dev:ssr
and serve
. My question is specific to the backend and how to serve the app.
Currently, I am using .NET to serve up the SPA without any special handling like this:
.AddSpaStaticFiles(spa =>
{
spa.RootPath = "wwwroot";
});
and then:
app.UseDefaultFiles();
app.UseSpaStaticFiles();
Does anyone have any documentation on how do service side rendering or pre-rendering?
angular
server-side-rendering
pre-rendering
0 Answers
Your Answer