Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/exclude Storybook from html template middleware (#4414)

Thomas Kaul52081d6741ca
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 05daaabf20..f153f28318 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 6c929c388d..b6c8f2e54a 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
) {