Skip to content

Commit d2ec38e

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2817 Updated config in environment.prod.ts and environment.ts
1 parent 8ed6c13 commit d2ec38e

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
@@ -53,7 +53,6 @@ import { FollowAuthorityMetadata } from './search-follow-metadata.interface';
5353
import { SearchConfig } from './search-page-config.interface';
5454
import { SearchResultConfig } from './search-result-config.interface';
5555
import { ServerConfig } from './server-config.interface';
56-
import { SSRConfig } from './ssr-config.interface';
5756
import { SubmissionConfig } from './submission-config.interface';
5857
import { ThemeConfig } from './theme.config';
5958
import { UIServerConfig } from './ui-server-config.interface';
@@ -64,35 +63,6 @@ export class DefaultAppConfig implements AppConfig {
6463
// NOTE: will log all redux actions and transfers in console
6564
debug = false;
6665

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-
9666
// Angular express server settings
9767
// NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
9868
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: false,
21+
enablePerformanceProfiler: false,
22+
inlineCriticalCss: false,
23+
transferState: false,
24+
replaceRestUrl: false,
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)