Skip to content

Commit beb0453

Browse files
committed
Added SSR excluded path into config file
1 parent acb7c03 commit beb0453

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

config/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,38 @@ rest:
66
port: 8080
77
nameSpace: /server
88

9+
universal:
10+
# Whether to tell Angular to inline "critical" styles into the server-side rendered HTML.
11+
# Determining which styles are critical is a relatively expensive operation; this option is
12+
# disabled (false) by default to boost server performance at the expense of loading smoothness.
13+
inlineCriticalCss: false
14+
# Patterns to be run as regexes against the path of the page to check if SSR is allowed.
15+
# If the path match any of the regexes it will be served directly in CSR.
16+
# By default, excludes community and collection browse, global browse, global search, community list, statistics and various administrative tools.
17+
excludePathPatterns:
18+
- pattern: "^/communities/[a-f0-9-]{36}/browse(/.*)?$"
19+
flag: "i"
20+
- pattern: "^/collections/[a-f0-9-]{36}/browse(/.*)?$"
21+
flag: "i"
22+
- pattern: "^/browse/"
23+
- pattern: "^/search$"
24+
- pattern: "^/community-list$"
25+
- pattern: "^/admin/"
26+
- pattern: "^/processes/?"
27+
- pattern: "^/notifications/"
28+
- pattern: "^/statistics/?"
29+
- pattern: "^/access-control/"
30+
- pattern: "^/health$"
31+
32+
# Whether to enable rendering of Search component on SSR.
33+
# If set to true the component will be included in the HTML returned from the server side rendering.
34+
# If set to false the component will not be included in the HTML returned from the server side rendering.
35+
enableSearchComponent: false
36+
# Whether to enable rendering of Browse component on SSR.
37+
# If set to true the component will be included in the HTML returned from the server side rendering.
38+
# If set to false the component will not be included in the HTML returned from the server side rendering.
39+
enableBrowseComponent: false
40+
941
# Caching settings
1042
cache:
1143
# NOTE: how long should objects be cached for by default

0 commit comments

Comments
 (0)