[DURACOM-344] adapt patterns and example file, fix possible error from YAML

This commit is contained in:
FrancescoMolinaro
2025-05-07 15:25:08 +02:00
parent ce0f6153b9
commit 21ac024423
6 changed files with 39 additions and 20 deletions

View File

@@ -629,10 +629,13 @@ function start() {
* Check if SSR should be skipped for path
*
* @param path
* @param excludePathRegexes
* @param excludePathPattern
*/
function isExcludedFromSsr(path: string, excludePathRegexes: RegExp[]): boolean {
return excludePathRegexes.some((regex) => regex.test(path));
function isExcludedFromSsr(path: string, excludePathPattern: (string | RegExp)[]): boolean {
return excludePathPattern.some((pattern) => {
const regex = new RegExp(pattern);
return regex.test(path)
});
}
/*