Skip to content

Commit 9bf1fbd

Browse files
committed
[DURACOM-288] Add missing settings to config.example.yml
1 parent 1a3fe01 commit 9bf1fbd

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

config/config.example.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ ui:
1919

2020
# Angular Server Side Rendering (SSR) settings
2121
ssr:
22+
# A boolean flag indicating whether the SSR configuration is enabled
23+
# Defaults to true.
24+
enabled: boolean;
25+
26+
# Enable request performance profiling data collection and printing the results in the server console.
27+
# Defaults to false.
28+
enablePerformanceProfiler: boolean;
29+
2230
# Whether to tell Angular to inline "critical" styles into the server-side rendered HTML.
2331
# Determining which styles are critical is a relatively expensive operation; this option is
2432
# disabled (false) by default to boost server performance at the expense of loading smoothness.
@@ -36,6 +44,19 @@ ssr:
3644
# If set to false the component will not be included in the HTML returned from the server side rendering.
3745
enableBrowseComponent: false
3846

47+
# Enable state transfer from the server-side application to the client-side application.
48+
# Defaults to true.
49+
# Note: When using an external application cache layer, it's recommended not to transfer the state to avoid caching it.
50+
# Disabling it ensures that dynamic state information is not inadvertently cached, which can improve security and
51+
# ensure that users always use the most up-to-date state.
52+
transferState: boolean;
53+
54+
# When a different REST base URL is used for the server-side application, the generated state contains references to
55+
# REST resources with the internal URL configured, so it is not transferred to the client application, by default.
56+
# Enabling this setting transfers the state to the client application and replaces internal URLs with the public
57+
# URLs used by the client application.
58+
replaceRestUrl: boolean;
59+
3960
# The REST API server settings
4061
# NOTE: these settings define which (publicly available) REST API to use. They are usually
4162
# 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
@@ -45,6 +66,9 @@ rest:
4566
port: 443
4667
# NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
4768
nameSpace: /server
69+
# Provide a different REST url to be used during SSR execution. It must contain the whole url including protocol, server port and
70+
# server namespace (uncomment to use it).
71+
#ssrBaseUrl: http://localhost:8080/server
4872

4973
# Caching settings
5074
cache:

0 commit comments

Comments
 (0)