fix: add 404 fallback to index.html for static sites

This commit is contained in:
2026-08-06 12:41:50 +05:30
parent b1f2b1ac6b
commit db9f910fa5
+2
View File
@@ -87,6 +87,8 @@ Object.entries(mappings).map(([key, value]) => {
if (value.startsWith("/")) {
caddyfile += `${key} {
root * ${value}
encode gzip zstd
try_files {path} /index.html
file_server
}