Skip to content

Commit 8193fae

Browse files
committedOct 9, 2024
Replace deprecated Caddyfile syntax
This warns for every call to the `subproject` snippet.
1 parent a0168ac commit 8193fae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎templates/Caddyfile.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
(subproject) {
44
# Caddy doesn't know this is a directory, so redirect to trailing / as
55
# would usually happen for them.
6-
redir /{args.0} /{args.0}/ permanent
6+
redir /{args[0]} /{args[0]}/ permanent
77

8-
handle_path /{args.0}/* {
9-
root * {{ caddy.site_dir }}/{args.0}
8+
handle_path /{args[0]}/* {
9+
root * {{ caddy.site_dir }}/{args[0]}
1010
try_files {path}.html {path}
1111
file_server {
1212
hide .git

0 commit comments

Comments
 (0)