MintPlayer.AspNetCore.SpaServices.Prerendering
10.0.2
dotnet add package MintPlayer.AspNetCore.SpaServices.Prerendering --version 10.0.2
NuGet\Install-Package MintPlayer.AspNetCore.SpaServices.Prerendering -Version 10.0.2
<PackageReference Include="MintPlayer.AspNetCore.SpaServices.Prerendering" Version="10.0.2" />
<PackageVersion Include="MintPlayer.AspNetCore.SpaServices.Prerendering" Version="10.0.2" />
<PackageReference Include="MintPlayer.AspNetCore.SpaServices.Prerendering" />
paket add MintPlayer.AspNetCore.SpaServices.Prerendering --version 10.0.2
#r "nuget: MintPlayer.AspNetCore.SpaServices.Prerendering, 10.0.2"
#:package MintPlayer.AspNetCore.SpaServices.Prerendering@10.0.2
#addin nuget:?package=MintPlayer.AspNetCore.SpaServices.Prerendering&version=10.0.2
#tool nuget:?package=MintPlayer.AspNetCore.SpaServices.Prerendering&version=10.0.2
MintPlayer.AspNetCore.SpaServices.Prerendering
This package provides enhanced server-side prerendering capabilities for ASP.NET Core single-page applications. It is a dependency of MintPlayer.AspNetCore.SpaServices.Routing.
Installation
NuGet Package Manager
Install-Package MintPlayer.AspNetCore.SpaServices.Prerendering
.NET CLI
dotnet add package MintPlayer.AspNetCore.SpaServices.Prerendering
Features
- Server-side prerendering with data injection
- Support for Angular Universal and similar SSR solutions
- Integration with ASP.NET Core request pipeline
MSBuild Integration
This package includes MintPlayer.AspNetCore.NodeServices which automatically configures your project with build targets for SPA development.
See the NodeServices documentation for details on:
EnableSpaBuilder- Master switch to disable SPA build automationSpaRoot- Configure your SPA source folderBuildServerSideRenderer- Toggle SSR bundle building
Disabling SPA Builder
If your project doesn't have a SPA but references this package:
<PropertyGroup>
<EnableSpaBuilder>false</EnableSpaBuilder>
</PropertyGroup>
Usage
spa.UseSpaPrerendering(options =>
{
options.BootModulePath = $"{spa.Options.SourcePath}/dist/server/main.js";
options.BootModuleBuilder = env.IsDevelopment()
? new AngularCliBuilder(npmScript: "build:ssr")
: null;
options.ExcludeUrls = new[] { "/sockjs-node" };
options.SupplyData = (context, data) =>
{
// Supply data to the prerenderer
data["message"] = "Hello from server!";
};
});
Related Packages
- MintPlayer.AspNetCore.NodeServices - Node.js integration
- MintPlayer.AspNetCore.SpaServices - Core SPA services
- MintPlayer.AspNetCore.SpaServices.Routing - SPA route integration (recommended)
License
This project is licensed under the Apache 2.0 License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- MintPlayer.AspNetCore.NodeServices (>= 10.0.1)
- MintPlayer.AspNetCore.SpaServices (>= 10.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MintPlayer.AspNetCore.SpaServices.Prerendering:
| Package | Downloads |
|---|---|
|
MintPlayer.AspNetCore.SpaServices.Routing
This package simplifies the SPA prerendering. Define your SPA routes in your service registration and check which SPA route is activated in the SupplyData callback. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.2 | 50 | 1/12/2026 |
| 10.0.1 | 208 | 12/20/2025 |
| 10.0.0 | 474 | 11/13/2025 |
| 10.0.0-rc.6 | 232 | 11/11/2025 |
| 10.0.0-rc.5 | 233 | 11/11/2025 |
| 10.0.0-rc.4 | 148 | 11/5/2025 |
| 10.0.0-rc.3 | 138 | 11/5/2025 |
| 10.0.0-rc.2 | 154 | 11/5/2025 |
| 10.0.0-rc.1 | 135 | 10/2/2025 |
| 9.1.0 | 1,608 | 11/22/2024 |
| 9.0.0 | 1,361 | 11/13/2024 |
| 8.3.0 | 1,618 | 6/10/2024 |
| 8.2.0 | 8,939 | 11/28/2023 |
| 8.1.0 | 219 | 11/28/2023 |
| 8.0.0 | 331 | 11/14/2023 |
| 8.0.0-rc2 | 105 | 11/13/2023 |
| 8.0.0-rc1 | 113 | 11/6/2023 |
| 7.0.3 | 7,819 | 8/9/2023 |
| 7.0.2 | 2,487 | 12/6/2022 |
| 7.0.1 | 531 | 11/15/2022 |
| 7.0.0 | 546 | 11/14/2022 |
| 7.0.0-preview.1 | 232 | 10/30/2022 |
| 6.1.7 | 710 | 8/9/2023 |
| 6.1.6 | 5,977 | 12/6/2022 |
| 6.1.5 | 633 | 11/15/2022 |
| 6.1.4 | 871 | 10/28/2022 |
| 6.1.3 | 8,093 | 8/26/2022 |
| 6.1.2 | 710 | 8/26/2022 |
| 6.1.1 | 4,231 | 7/5/2022 |
| 6.1.0 | 765 | 7/5/2022 |
| 6.0.5-preview1 | 326 | 7/5/2022 |
| 6.0.4 | 5,278 | 12/19/2021 |
| 6.0.3 | 576 | 12/8/2021 |
| 6.0.1 | 603 | 12/2/2021 |
| 6.0.0 | 1,423 | 12/2/2021 |
| 1.0.0 | 521 | 12/2/2021 |