From 6e7976c6eb146f53ef4ecfc86a8ed833400a174d Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 7 Mar 2023 17:29:43 -0600 Subject: [PATCH] Fix static file serving --- app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.ts b/app.ts index 133ca207d..3589c6ded 100755 --- a/app.ts +++ b/app.ts @@ -249,8 +249,8 @@ const extraBodyClass = ceProps('extraBodyClass', isDevMode() ? 'dev' : ''); const storageSolution = compilerProps.ceProps('storageSolution', 'local'); const httpRoot = urljoin(ceProps('httpRoot', '/'), '/'); -const staticUrl = ceProps('staticUrl', urljoin(httpRoot, 'static')); -const staticRoot = urljoin(staticUrl, '/'); +const staticUrl = ceProps('staticUrl'); +const staticRoot = urljoin(staticUrl || urljoin(httpRoot, 'static'), '/'); function staticHeaders(res) { if (staticMaxAgeSecs) {