Skip to content

Commit d68a6c9

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2817 Updated config in environment.prod.ts and environment.ts
1 parent 99e59ad commit d68a6c9

3 files changed

Lines changed: 29 additions & 31 deletions

File tree

src/config/default-app-config.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import { FollowAuthorityMetadata } from './search-follow-metadata.interface';
5252
import { SearchConfig } from './search-page-config.interface';
5353
import { SearchResultConfig } from './search-result-config.interface';
5454
import { ServerConfig } from './server-config.interface';
55-
import { SSRConfig } from './ssr-config.interface';
5655
import { SubmissionConfig } from './submission-config.interface';
5756
import { ThemeConfig } from './theme.config';
5857
import { UIServerConfig } from './ui-server-config.interface';
@@ -63,35 +62,6 @@ export class DefaultAppConfig implements AppConfig {
6362
// NOTE: will log all redux actions and transfers in console
6463
debug = false;
6564

66-
ssr: SSRConfig = {
67-
enabled: true,
68-
enablePerformanceProfiler: false,
69-
inlineCriticalCss: false,
70-
transferState: false,
71-
replaceRestUrl: true,
72-
excludePathPatterns: [
73-
{
74-
pattern: '^/communities/[a-f0-9-]{36}/browse(/.*)?$',
75-
flag: 'i',
76-
},
77-
{
78-
pattern: '^/collections/[a-f0-9-]{36}/browse(/.*)?$',
79-
flag: 'i',
80-
},
81-
{ pattern: '^/browse/' },
82-
{ pattern: '^/search' },
83-
{ pattern: '^/community-list$' },
84-
{ pattern: '^/statistics/?' },
85-
{ pattern: '^/admin/' },
86-
{ pattern: '^/processes/?' },
87-
{ pattern: '^/notifications/' },
88-
{ pattern: '^/access-control/' },
89-
{ pattern: '^/health$' },
90-
],
91-
enableSearchComponent: false,
92-
enableBrowseComponent: false,
93-
};
94-
9565
// Angular express server settings
9666
// NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
9767
ui: UIServerConfig = {

src/environments/environment.prod.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,32 @@ export const environment = {
1616
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
1717
nameSpace: '/server',
1818
},
19+
ssr: {
20+
enabled: true,
21+
enablePerformanceProfiler: false,
22+
inlineCriticalCss: false,
23+
transferState: false,
24+
replaceRestUrl: true,
25+
excludePathPatterns: [
26+
{
27+
pattern: '^/communities/[a-f0-9-]{36}/browse(/.*)?$',
28+
flag: 'i',
29+
},
30+
{
31+
pattern: '^/collections/[a-f0-9-]{36}/browse(/.*)?$',
32+
flag: 'i',
33+
},
34+
{ pattern: '^/browse/' },
35+
{ pattern: '^/search' },
36+
{ pattern: '^/community-list$' },
37+
{ pattern: '^/statistics/?' },
38+
{ pattern: '^/admin/' },
39+
{ pattern: '^/processes/?' },
40+
{ pattern: '^/notifications/' },
41+
{ pattern: '^/access-control/' },
42+
{ pattern: '^/health$' },
43+
],
44+
enableSearchComponent: false,
45+
enableBrowseComponent: false,
46+
},
1947
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const environment: Partial<BuildConfig> = {
1313
enabled: false,
1414
enablePerformanceProfiler: false,
1515
inlineCriticalCss: false,
16-
transferState: true,
16+
transferState: false,
1717
replaceRestUrl: false,
1818
excludePathPatterns: [
1919
{

0 commit comments

Comments
 (0)