mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import { Config } from './config.interface';
|
|
|
|
export interface UniversalConfig extends Config {
|
|
preboot: boolean;
|
|
async: boolean;
|
|
time: boolean;
|
|
|
|
/**
|
|
* Whether to inline "critical" styles into the server-side rendered HTML.
|
|
*
|
|
* Determining which styles are critical is a relatively expensive operation;
|
|
* this option can be disabled to boost server performance at the expense of
|
|
* loading smoothness.
|
|
*/
|
|
inlineCriticalCss?: boolean;
|
|
|
|
/**
|
|
* Enable state transfer from the server-side application to the client-side application.
|
|
* Defaults to true.
|
|
*
|
|
* Note: When using an external application cache layer, it's recommended not to transfer the state to avoid caching it.
|
|
* Disabling it ensures that dynamic state information is not inadvertently cached, which can improve security and
|
|
* ensure that users always use the most up-to-date state.
|
|
*/
|
|
transferState: boolean;
|
|
|
|
/**
|
|
* When a different REST base URL is used for the server-side application, the generated state contains references to
|
|
* REST resources with the internal URL configured. By default, these internal URLs are replaced with public URLs.
|
|
* Disable this setting to avoid URL replacement during SSR. In this the state is not transferred to avoid security issues.
|
|
*/
|
|
replaceRestUrl: boolean;
|
|
|
|
/**
|
|
* Regexes to match url's path and check if SSR is disabled for it.
|
|
*/
|
|
excludePathRegexes: RegExp[];
|
|
|
|
/**
|
|
* Whether to enable rendering of search component on SSR
|
|
*/
|
|
enableSearchComponent: boolean;
|
|
|
|
/**
|
|
* Whether to enable rendering of browse component on SSR
|
|
*/
|
|
enableBrowseComponent: boolean;
|
|
}
|