mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 04:29:48 -06:00
Fix static file serving
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user