[DURACOM-303] adapt interface for ssr

This commit is contained in:
FrancescoMolinaro
2025-01-24 17:29:37 +01:00
parent 9467838066
commit 53335658e0
3 changed files with 14 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ export class BrowseByMetadataPageComponent implements OnInit, OnDestroy {
currentPage: 1,
pageSize: this.appConfig.browseBy.pageSize,
});
this.renderOnServerSide = environment.ssr.enableBrowseComponent;
this.renderOnServerSide = environment.universal.enableBrowseComponent;
}

View File

@@ -18,4 +18,13 @@ export interface UniversalConfig extends Config {
* Paths to enable SSR for. Defaults to the home page and paths in the sitemap.
*/
paths: Array<string>;
/**
* Whether to enable rendering of search component on SSR
*/
enableSearchComponent: boolean;
/**
* Whether to enable rendering of browse component on SSR
*/
enableBrowseComponent: boolean;
}

View File

@@ -323,4 +323,8 @@ export const environment: BuildConfig = {
messageTimeOutDurationMs: 30000,
isVisible: false,
},
search: {
defaultFilterCount: 5
}
};