fix: minor issues
All checks were successful
JS Unit Tests / test (pull_request) Successful in 26s
Build Test / build (pull_request) Successful in 28s
PHP Unit Tests / test (pull_request) Successful in 53s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-04-25 15:46:51 -04:00
parent a05313e3a1
commit 88c72542f2
3 changed files with 35 additions and 15 deletions

View File

@@ -49,6 +49,14 @@ server {
try_files /index.html =404;
}
# Serve module entrypoints with revalidation so changes to the stable
# module.mjs filename are picked up after rebuilds.
location ~ ^/modules/([^/]+)/static/module\.mjs$ {
alias /var/www/ktrix/main/modules/$1/static/module.mjs;
expires -1;
add_header Cache-Control "no-cache, must-revalidate";
}
# Handle asset files (css, js, images, etc.) - serve directly if they exist
location ~* \.(css|js|svg|gif|png|jpg|jpeg|ico|woff|woff2|ttf|eot|map)$ {
try_files $uri =404;