From 4d6be0a5077b2201793afca268aa91a9eba3b786 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:35:49 +0200 Subject: [PATCH] Exclude open-source-alternative-to-markets.sh (#2195) --- apps/api/src/app/frontend.middleware.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/frontend.middleware.ts b/apps/api/src/app/frontend.middleware.ts index 8e867c371..8c723e9c8 100644 --- a/apps/api/src/app/frontend.middleware.ts +++ b/apps/api/src/app/frontend.middleware.ts @@ -240,7 +240,13 @@ export class FrontendMiddleware implements NestMiddleware { private isFileRequest(filename: string) { if (filename === '/assets/LICENSE') { return true; - } else if (filename === '/sitemap.xml' || filename.includes('auth/ey')) { + } else if ( + filename === '/sitemap.xml' || + filename.includes('auth/ey') || + filename.includes( + 'personal-finance-tools/open-source-alternative-to-markets.sh' + ) + ) { return false; }