mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-303] adapt interface for ssr
This commit is contained in:
@@ -148,7 +148,7 @@ export class BrowseByMetadataPageComponent implements OnInit, OnDestroy {
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: this.appConfig.browseBy.pageSize,
|
pageSize: this.appConfig.browseBy.pageSize,
|
||||||
});
|
});
|
||||||
this.renderOnServerSide = environment.ssr.enableBrowseComponent;
|
this.renderOnServerSide = environment.universal.enableBrowseComponent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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 to enable SSR for. Defaults to the home page and paths in the sitemap.
|
||||||
*/
|
*/
|
||||||
paths: Array<string>;
|
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;
|
||||||
}
|
}
|
||||||
|
@@ -323,4 +323,8 @@ export const environment: BuildConfig = {
|
|||||||
messageTimeOutDurationMs: 30000,
|
messageTimeOutDurationMs: 30000,
|
||||||
isVisible: false,
|
isVisible: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
search: {
|
||||||
|
defaultFilterCount: 5
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user