fix: minor issues
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user