[DURACOM-288] Refactoring configuration to transfer state

This commit is contained in:
Giuseppe Digilio
2025-01-09 18:46:22 +01:00
parent a7276b8a30
commit cfba84ce31
9 changed files with 45 additions and 26 deletions

View File

@@ -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.
*/