From cfb4a627be79cc5a66f3e35c4eea60ed52f5ab63 Mon Sep 17 00:00:00 2001 From: William Welling <8352733+wwelling@users.noreply.github.com> Date: Thu, 2 Jun 2022 10:16:49 -0500 Subject: [PATCH] use router for static assets --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 699228033f..a4d90270ef 100644 --- a/server.ts +++ b/server.ts @@ -163,7 +163,7 @@ export function app() { * Serve static resources (images, i18n messages, …) * Handle pre-compressed files with [express-static-gzip](https://github.com/tkoenig89/express-static-gzip) */ - server.get('*.*', cacheControl, expressStaticGzip(DIST_FOLDER, { + router.get('*.*', cacheControl, expressStaticGzip(DIST_FOLDER, { index: false, enableBrotli: true, orderPreference: ['br', 'gzip'],