diff --git a/Caddyfile b/Caddyfile index 27943d9..c5ccfdd 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,6 +1,6 @@ (slightly) { root ./public - file_server browse + file_server @naked_path { path_regexp (^|/)[^./]+$ @@ -19,6 +19,9 @@ rewrite @naked_path / rewrite @md_path {http.matchers.file.relative} + file_server /dist/* browse + header /dist/* Access-Control-Allow-Origin * + handle_errors { rewrite @md_path {http.matchers.file.relative} rewrite * /