1
0
Files
yel-dspace-angular/src/config/ssr-config.interface.ts
Alan Orth 026703d170 Restrict SSR to paths in the sitemap
Because Angular SSR is not very efficient, after discussion with
the Google Scholar team we realized a compromise would be to only
use SSR for pages in the DSpace sitemap (and the home page).

(cherry picked from commit 5b3b3bfb9c)
2025-01-21 22:38:01 +00:00

29 lines
893 B
TypeScript

import { Config } from './config.interface';
export interface SSRConfig extends Config {
/**
* A boolean flag indicating whether the SSR configuration is enabled
* Defaults to true.
*/
enabled: boolean;
/**
* Enable request performance profiling data collection and printing the results in the server console.
* Defaults to false.
*/
enablePerformanceProfiler: boolean;
/**
* When set to true, reduce render blocking requests by inlining critical CSS.
* Determining which styles are critical can be an expensive operation;
* this option can be disabled to boost server performance at the expense of loading smoothness.
* For improved SSR performance, DSpace defaults this to false (disabled).
*/
inlineCriticalCss: boolean;
/**
* Paths to enable SSR for. Defaults to the home page and paths in the sitemap.
*/
paths: Array<string>;
}