Skip to content

Commit 3b275f4

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2817 Moved config for ssr to default-app-config.ts, set transferState to false
1 parent b6e1517 commit 3b275f4

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

src/config/default-app-config.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,43 @@ import { ServerConfig } from './server-config.interface';
5656
import { SubmissionConfig } from './submission-config.interface';
5757
import { ThemeConfig } from './theme.config';
5858
import { UIServerConfig } from './ui-server-config.interface';
59+
import { SSRConfig } from './ssr-config.interface';
5960

6061
export 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

Comments
 (0)