From 1503e2c066f5baa85aa73b59ce5f03ca8d3b32b6 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 2 Oct 2025 23:47:59 +0200 Subject: [PATCH] Add support for custom assets directory Add handling for files starting with 'assets/' to serve from custom directory similar to other static assets --- app/static.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/static.php b/app/static.php index 81afd9e..cc41c6f 100644 --- a/app/static.php +++ b/app/static.php @@ -12,6 +12,8 @@ if (str_starts_with($file, 'styles/')) { $filePath = $customBasePath . 'custom/' . $file; } elseif (str_starts_with($file, 'fonts/')) { $filePath = $customBasePath . 'custom/' . $file; +} elseif (str_starts_with($file, 'assets/')) { + $filePath = $customBasePath . 'custom/' . $file; } elseif (str_starts_with($file, 'default-styles/')) { $filePath = $basePath . 'default/' . substr($file, 15); // Remove 'default-styles/' prefix } elseif (str_starts_with($file, 'docs-styles/')) {