|
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 | 22 | # Enable request performance profiling data collection and printing the results in the server console. |
27 | | - # Defaults to false. |
28 | | - enablePerformanceProfiler: boolean; |
29 | | - |
| 23 | + # Defaults to false. Enabling in production is NOT recommended |
| 24 | + enablePerformanceProfiler: false |
30 | 25 | # Whether to tell Angular to inline "critical" styles into the server-side rendered HTML. |
31 | 26 | # Determining which styles are critical is a relatively expensive operation; this option is |
32 | 27 | # disabled (false) by default to boost server performance at the expense of loading smoothness. |
|
43 | 38 | # If set to true the component will be included in the HTML returned from the server side rendering. |
44 | 39 | # If set to false the component will not be included in the HTML returned from the server side rendering. |
45 | 40 | enableBrowseComponent: false |
46 | | - |
47 | 41 | # Enable state transfer from the server-side application to the client-side application. |
48 | 42 | # Defaults to true. |
49 | 43 | # Note: When using an external application cache layer, it's recommended not to transfer the state to avoid caching it. |
50 | 44 | # Disabling it ensures that dynamic state information is not inadvertently cached, which can improve security and |
51 | 45 | # ensure that users always use the most up-to-date state. |
52 | | - transferState: boolean; |
53 | | - |
| 46 | + transferState: true |
54 | 47 | # 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; |
| 48 | + # REST resources with the internal URL configured. By default, these internal URLs are replaced with public URLs. |
| 49 | + # Disable this setting to avoid URL replacement during SSR. In this the state is not transferred to avoid security issues. |
| 50 | + replaceRestUrl: true |
59 | 51 |
|
60 | 52 | # The REST API server settings |
61 | 53 | # NOTE: these settings define which (publicly available) REST API to use. They are usually |
|
0 commit comments