From 52081d6741cafc8fb87ffa83d062ed1d577978a8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 9 Mar 2025 12:07:23 +0100 Subject: [PATCH] Bugfix/exclude Storybook from html template middleware (#4414) * Exclude storybook * Update changelog --- CHANGELOG.md | 4 ++++ apps/api/src/middlewares/html-template.middleware.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05daaabf2..f153f2831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the language localization for German (`de`) - Upgraded `@simplewebauthn/browser` and `@simplewebauthn/server` from version `9.0` to `13.1` +### Fixed + +- Fixed an issue with serving _Storybook_ + ## 2.144.0 - 2025-03-06 ### Fixed diff --git a/apps/api/src/middlewares/html-template.middleware.ts b/apps/api/src/middlewares/html-template.middleware.ts index 6c929c388..b6c8f2e54 100644 --- a/apps/api/src/middlewares/html-template.middleware.ts +++ b/apps/api/src/middlewares/html-template.middleware.ts @@ -129,6 +129,7 @@ export const HtmlTemplateMiddleware = async ( if ( path.startsWith('/api/') || + path.startsWith('/development/storybook') || isFileRequest(path) || !environment.production ) {