diff --git a/config/config.example.yml b/config/config.example.yml index 36d6a009d3..407b5b958e 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -17,6 +17,13 @@ ui: # Trust X-FORWARDED-* headers from proxies (default = true) useProxies: true +universal: + # Whether to inline "critical" styles into the server-side rendered HTML. + # Determining which styles are critical is a relatively expensive operation; + # this option can be disabled to boost server performance at the expense of + # loading smoothness. + inlineCriticalCss: true + # The REST API server settings # NOTE: these settings define which (publicly available) REST API to use. They are usually # 'synced' with the 'dspace.server.url' setting in your backend's local.cfg. diff --git a/src/config/universal-config.interface.ts b/src/config/universal-config.interface.ts index 3ff68fea66..eb89264e37 100644 --- a/src/config/universal-config.interface.ts +++ b/src/config/universal-config.interface.ts @@ -12,5 +12,5 @@ export interface UniversalConfig extends Config { * this option can be disabled to boost server performance at the expense of * loading smoothness. */ - inlineCriticalCss?; + inlineCriticalCss?: boolean; }