berhir / AspNetCore.SpaYarp

An alternative approach to the new ASP.NET Core SPA templates in .NET 6. It uses YARP as proxy to forward requests to the SPA dev server.
MIT License
99 stars 12 forks source link

How to implement server side rendering with Next.js #2

Closed prince272 closed 3 years ago

berhir commented 3 years ago

Server-side rendering is out of the scope of this package. Usually, you must call into the JavaScript code to render a page on the server. Microsoft dropped the support for their SpaServices and NodeServices packages some time ago (see https://github.com/aspnet/Announcements/issues/379 and https://github.com/dotnet/aspnetcore/issues/12890) Unfortunately, I am not aware of any good alternatives. But you can read the discussions in the linked issues and maybe one of the suggested alternatives works for you.