Skip to content

Commit 1bb73db

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2817 Moved config for universal to default-app-config.ts, set transferState to false
1 parent d73e008 commit 1bb73db

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/config/default-app-config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,26 @@ 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';
4647

4748
export class DefaultAppConfig implements AppConfig {
4849
production = false;
4950

5051
// NOTE: will log all redux actions and transfers in console
5152
debug = false;
5253

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+
5366
// Angular Universal server settings
5467
// NOTE: these must be 'synced' with the 'dspace.ui.url' setting in your backend's local.cfg.
5568
ui: UIServerConfig = {

0 commit comments

Comments
 (0)