From ed973345301b6178b15d573a2b62f05e79763191 Mon Sep 17 00:00:00 2001 From: Martin Birnthaler Date: Thu, 12 Feb 2026 15:12:35 +0100 Subject: [PATCH] UPCORE-2007 Fix demo after express breaking-change --- projects/zvoove-components-demo/server.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/zvoove-components-demo/server.ts b/projects/zvoove-components-demo/server.ts index cb47593..2806f24 100644 --- a/projects/zvoove-components-demo/server.ts +++ b/projects/zvoove-components-demo/server.ts @@ -20,15 +20,14 @@ export function app(): express.Express { // Example Express Rest API endpoints // server.get('/api/**', (req, res) => { }); // Serve static files from /browser - server.get( - '*.*', + server.use( express.static(browserDistFolder, { maxAge: '1y', }) ); // All regular routes use the Angular engine - server.get('*', (req: Request, res: Response, next: NextFunction) => { + server.get('/{*path}', (req: Request, res: Response, next: NextFunction) => { const { protocol, originalUrl, baseUrl, headers } = req; res.set({