Issue
I have a .net5 WebApi that serves an Angular 12 application (created separately) as static files, I want to improve its performance with server-side rendering provided by Angular Universal, my app is published with Heroku. I can't find an approach to achieve that?
Solution
I've written an article about this some time ago (.NET Core 3.1). However since .NET 5 the NodeServices
have been deprecated.
Blazor as it is today, is still no option for me, so today I created a new repository using the code required for SSR. This package targets .NET 6, so you're going to have to upgrade your project too.
Edit:
There's a demo project embedded in the repository. You should be able to simply run the database migrations
cd Demo/Demo.Data
dotnet ef database update
and run the Demo.Web project.
Answered By - Pieterjan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.