@@ -56,13 +56,43 @@ import { ServerConfig } from './server-config.interface';
5656import { SubmissionConfig } from './submission-config.interface' ;
5757import { ThemeConfig } from './theme.config' ;
5858import { UIServerConfig } from './ui-server-config.interface' ;
59+ import { SSRConfig } from './ssr-config.interface' ;
5960
6061export class DefaultAppConfig implements AppConfig {
6162 production = false ;
6263
6364 // NOTE: will log all redux actions and transfers in console
6465 debug = false ;
6566
67+ ssr : SSRConfig = {
68+ enabled : true ,
69+ enablePerformanceProfiler : false ,
70+ inlineCriticalCss : false ,
71+ transferState : false ,
72+ replaceRestUrl : true ,
73+ excludePathPatterns : [
74+ {
75+ pattern : '^/communities/[a-f0-9-]{36}/browse(/.*)?$' ,
76+ flag : 'i' ,
77+ } ,
78+ {
79+ pattern : '^/collections/[a-f0-9-]{36}/browse(/.*)?$' ,
80+ flag : 'i' ,
81+ } ,
82+ { pattern : '^/browse/' } ,
83+ { pattern : '^/search' } ,
84+ { pattern : '^/community-list$' } ,
85+ { pattern : '^/statistics/?' } ,
86+ { pattern : '^/admin/' } ,
87+ { pattern : '^/processes/?' } ,
88+ { pattern : '^/notifications/' } ,
89+ { pattern : '^/access-control/' } ,
90+ { pattern : '^/health$' } ,
91+ ] ,
92+ enableSearchComponent : false ,
93+ enableBrowseComponent : false ,
94+ } ;
95+
6696 // Angular express server settings
6797 // NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
6898 ui : UIServerConfig = {
0 commit comments