mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-288] Refactoring configuration to transfer state
This commit is contained in:
@@ -21,6 +21,24 @@ export interface SSRConfig extends Config {
|
||||
*/
|
||||
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, so it is not transferred to the client application, by default.
|
||||
* Enabling this setting transfers the state to the client application and replaces internal URLs with the public
|
||||
* URLs used by the client application.
|
||||
*/
|
||||
replaceRestUrl: boolean;
|
||||
|
||||
/**
|
||||
* Paths to enable SSR for. Defaults to the home page and paths in the sitemap.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user