Skip to content

Commit

Permalink
Add to config.example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ybnd committed Mar 22, 2024
1 parent 55573c5 commit 7aed787
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ let anonymousCache: LRU<string, any>;
// extend environment with app config for server
extendEnvironmentWithAppConfig(environment, appConfig);

console.log(`environment.universal.inlineCriticalCss = ${environment.universal.inlineCriticalCss}`); // todo: remove this

// The Express app is exported so that it can be used by serverless Functions.
export function app() {

Expand Down
2 changes: 1 addition & 1 deletion src/config/universal-config.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 7aed787

Please sign in to comment.