Fix static file serving

This commit is contained in:
Matt Godbolt
2023-03-11 14:18:03 -06:00
parent 9666e5bed7
commit 6e7976c6eb
+2 -2
View File
@@ -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<string|undefined>('staticUrl');
const staticRoot = urljoin(staticUrl || urljoin(httpRoot, 'static'), '/');
function staticHeaders(res) {
if (staticMaxAgeSecs) {