|
19 | 19 |
|
20 | 20 | # Angular Server Side Rendering (SSR) settings |
21 | 21 | 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 | + |
22 | 30 | # Whether to tell Angular to inline "critical" styles into the server-side rendered HTML. |
23 | 31 | # Determining which styles are critical is a relatively expensive operation; this option is |
24 | 32 | # disabled (false) by default to boost server performance at the expense of loading smoothness. |
|
36 | 44 | # If set to false the component will not be included in the HTML returned from the server side rendering. |
37 | 45 | enableBrowseComponent: false |
38 | 46 |
|
| 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 | + |
39 | 60 | # The REST API server settings |
40 | 61 | # NOTE: these settings define which (publicly available) REST API to use. They are usually |
41 | 62 | # 'synced' with the 'dspace.server.url' setting in your backend's local.cfg. |
|
45 | 66 | port: 443 |
46 | 67 | # NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript |
47 | 68 | 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 |
48 | 72 |
|
49 | 73 | # Caching settings |
50 | 74 | cache: |
|
0 commit comments