|
1 | 1 | # NOTE: will log all redux actions and transfers in console |
2 | 2 | debug: false |
3 | 3 |
|
4 | | -# Angular Universal server settings |
| 4 | +# Angular User Inteface settings |
5 | 5 | # NOTE: these settings define where Node.js will start your UI application. Therefore, these |
6 | 6 | # "ui" settings usually specify a localhost port/URL which is later proxied to a public URL (using Apache or similar) |
7 | 7 | ui: |
|
17 | 17 | # Trust X-FORWARDED-* headers from proxies (default = true) |
18 | 18 | useProxies: true |
19 | 19 |
|
20 | | -universal: |
21 | | - # Whether to inline "critical" styles into the server-side rendered HTML. |
22 | | - # Determining which styles are critical is a relatively expensive operation; |
23 | | - # this option can be disabled to boost server performance at the expense of |
24 | | - # loading smoothness. |
25 | | - inlineCriticalCss: true |
| 20 | +# Angular Server Side Rendering (SSR) settings |
| 21 | +ssr: |
| 22 | + # Whether to tell Angular to inline "critical" styles into the server-side rendered HTML. |
| 23 | + # Determining which styles are critical is a relatively expensive operation; this option is |
| 24 | + # disabled (false) by default to boost server performance at the expense of loading smoothness. |
| 25 | + inlineCriticalCss: false |
| 26 | + # Path prefixes to enable SSR for. By default these are limited to paths of primary DSpace objects. |
| 27 | + # NOTE: The "/handle/" path ensures Handle redirects work via SSR. The "/reload/" path ensures |
| 28 | + # hard refreshes (e.g. after login) trigger SSR while fully reloading the page. |
| 29 | + paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ] |
| 30 | + # Whether to enable rendering of Search component on SSR. |
| 31 | + # If set to true the component will be included in the HTML returned from the server side rendering. |
| 32 | + # If set to false the component will not be included in the HTML returned from the server side rendering. |
| 33 | + enableSearchComponent: false |
| 34 | + # Whether to enable rendering of Browse component on SSR. |
| 35 | + # If set to true the component will be included in the HTML returned from the server side rendering. |
| 36 | + # If set to false the component will not be included in the HTML returned from the server side rendering. |
| 37 | + enableBrowseComponent: false |
| 38 | + # Enable state transfer from the server-side application to the client-side application. |
| 39 | + # Defaults to true. |
| 40 | + # Note: When using an external application cache layer, it's recommended not to transfer the state to avoid caching it. |
| 41 | + # Disabling it ensures that dynamic state information is not inadvertently cached, which can improve security and |
| 42 | + # ensure that users always use the most up-to-date state. |
| 43 | + transferState: true |
| 44 | + # When a different REST base URL is used for the server-side application, the generated state contains references to |
| 45 | + # REST resources with the internal URL configured. By default, these internal URLs are replaced with public URLs. |
| 46 | + # Disable this setting to avoid URL replacement during SSR. In this the state is not transferred to avoid security issues. |
| 47 | + replaceRestUrl: true |
| 48 | + # Enable request performance profiling data collection and printing the results in the server console. |
| 49 | + # Defaults to false. Enabling in production is NOT recommended |
| 50 | + #enablePerformanceProfiler: false |
26 | 51 |
|
27 | 52 | # The REST API server settings |
28 | 53 | # NOTE: these settings define which (publicly available) REST API to use. They are usually |
|
33 | 58 | port: 443 |
34 | 59 | # NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript |
35 | 60 | nameSpace: /server |
| 61 | + # Provide a different REST url to be used during SSR execution. It must contain the whole url including protocol, server port and |
| 62 | + # server namespace (uncomment to use it). |
| 63 | + #ssrBaseUrl: http://localhost:8080/server |
36 | 64 |
|
37 | 65 | # Caching settings |
38 | 66 | cache: |
@@ -448,6 +476,12 @@ search: |
448 | 476 | enabled: false |
449 | 477 | # List of filters to enable in "Advanced Search" dropdown |
450 | 478 | filter: [ 'title', 'author', 'subject', 'entityType' ] |
| 479 | + # |
| 480 | + # Number used to render n UI elements called loading skeletons that act as placeholders. |
| 481 | + # These elements indicate that some content will be loaded in their stead. |
| 482 | + # Since we don't know how many filters will be loaded before we receive a response from the server we use this parameter for the skeletons count. |
| 483 | + # e.g. If we set 5 then 5 loading skeletons will be visualized before the actual filters are retrieved. |
| 484 | + defaultFiltersCount: 5 |
451 | 485 |
|
452 | 486 |
|
453 | 487 | # Notify metrics |
|
0 commit comments