All Versions
DSpace Documentation
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
ssr: # Whether to tell Angular to inline "critical" styles into the server-side rendered HTML. # Determining which styles are critical is a relatively expensive operation; this option is # disabled (false) by default to boost server performance at the expense of loading smoothness. inlineCriticalCss: false # Path prefixespatterns to *exclude* enablefrom SSR for. By default these are limited to paths of primary DSpace objects listed in the DSpace sitemap. # Paths are matched based on whether they "start with" a string in this configuration. Wildcards are not supported, excludes community and collection browse, global browse, # global search, community list, statistics and various administrative tools. # The defined patterns will be run as regexes against the path of the page to check if SSR is allowed. # ToIf disablethe thispath feature,matches specifyany [of '/' ], as that will result in all paths being enabled for SSR. paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/' ] the regexes it will be served directly in CSR (client side rendering). # NOTE: This configuration *replaces* the "paths" setting that existed in versions 7.6.3 and 8.1. excludePathPatterns: - pattern: "^/communities/[a-f0-9-]{36}/browse(/.*)?$", flag: "i" - pattern: "^/collections/[a-f0-9-]{36}/browse(/.*)?$" flag: "i" - pattern: "^/browse/" - pattern: "^/search$" - pattern: "^/community-list$" - pattern: "^/admin/" - pattern: "^/processes/?" - pattern: "^/notifications/" - pattern: "^/statistics/?" - pattern: "^/access-control/" - pattern: "^/health$" # Whether to enable rendering of Search component in SSR. # If set to true the component will be included in the HTML returned from the server side rendering. # If set to false the component will not be included in the HTML returned from the server side rendering. enableSearchComponent: false # Whether to enable rendering of Browse component on SSR. # If set to true the component will be included in the HTML returned from the server side rendering. # If set to false the component will not be included in the HTML returned from the server side rendering. enableBrowseComponent: false # 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: true # 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. By default, these internal URLs are replaced with public URLs. # Disable this setting to avoid URL replacement during SSR. In this the state is not transferred to avoid security issues. replaceRestUrl: true # Enable request performance profiling data collection and printing the results in the server console. # Defaults to false. Enabling in production is NOT recommended enablePerformanceProfiler: false |
...