Skip to content

Commit

Permalink
chore(readme): up doc + bump
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlautier committed Sep 11, 2024
1 parent 5df08e3 commit d03c7d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,20 @@ import { AppServerModule } from "./app/app.server.module";
enableProdMode();

interface TransferData {
originalHtml: string;
startupContext: StartupContext; // custom
request: any;
}

export default createServerRenderer(params => {
const { startupContext } = params.data as TransferData;
const { startupContext, originalHtml } = params.data as TransferData;
const extraProviders = [
{ provide: APP_BASE_HREF, useValue: startupContext.virtualPath },
{ provide: "BASE_URL", useValue: params.origin + params.baseUrl },
];

const options = {
document: params.data.originalHtml,
document: originalHtml,
url: params.url,
extraProviders
};
Expand All @@ -64,7 +65,6 @@ export default createServerRenderer(params => {

return renderPromise.then(html => ({ html }));
});

```


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssv/aspnet-prerendering",
"version": "0.1.0",
"version": "0.1.1",
"versionSuffix": "",
"description": "aspnet SPA Services Node prerendering ESM compatible.",
"homepage": "https://github.com/sketch7/aspnet-prerendering",
Expand Down

0 comments on commit d03c7d4

Please sign in to comment.