Skip to content

Commit cc83ef6

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

3 files changed

Lines changed: 13 additions & 15 deletions

File tree

src/config/default-app-config.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,13 @@ import { MetadataLinkViewPopoverDataConfig } from './metadata-link-view-popoverd
4343
import { IdentifierSubtypesConfig, IdentifierSubtypesIconPositionEnum } from './identifier-subtypes-config.interface';
4444
import { DatadogRumConfig } from './datadog-rum-config.interfaces';
4545
import {LuckySearchRedirectConfig} from './lucky-search-redirect-config';
46-
import { UniversalConfig } from './universal-config.interface';
4746

4847
export class DefaultAppConfig implements AppConfig {
4948
production = false;
5049

5150
// NOTE: will log all redux actions and transfers in console
5251
debug = false;
5352

54-
universal: UniversalConfig = {
55-
preboot: true,
56-
async: true,
57-
time: false,
58-
inlineCriticalCss: false,
59-
transferState: false,
60-
replaceRestUrl: true,
61-
paths: ['/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/', '/lucky-search'],
62-
enableSearchComponent: false,
63-
enableBrowseComponent: false,
64-
};
65-
6653
// Angular Universal server settings
6754
// NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
6855
ui: UIServerConfig = {

src/environments/environment.prod.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,16 @@ rest: {
1515
port: 8080,
1616
// NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
1717
nameSpace: '/server'
18-
}
18+
},
19+
universal: {
20+
preboot: false,
21+
async: true,
22+
time: false,
23+
inlineCriticalCss: false,
24+
transferState: false,
25+
replaceRestUrl: false,
26+
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/', '/lucky-search' ],
27+
enableSearchComponent: false,
28+
enableBrowseComponent: false,
29+
},
1930
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const environment: Partial<BuildConfig> = {
1414
async: true,
1515
time: false,
1616
inlineCriticalCss: false,
17-
transferState: true,
17+
transferState: false,
1818
replaceRestUrl: false,
1919
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/', '/lucky-search' ],
2020
enableSearchComponent: false,

0 commit comments

Comments
 (0)