Files
Michael BiancoandGitHub b2142fd3d0 test(node): custom caddyfile with node spa (#605)
* feat: add node-vite-custom-caddyfile example

- Include a Vite-based SPA template with a custom Caddyfile configuration.
- Add test definitions to verify custom Caddyfile request handling and SPA navigation.

Generated-by: aiautocommit

* test: add snapshot for custom caddyfile support

Generated-by: aiautocommit
2026-07-13 14:31:54 -06:00

16 lines
253 B
Caddyfile

{
auto_https off
}
:{$PORT:80} {
handle /custom-caddy-response {
respond "hello-from-custom-caddyfile"
}
handle {
root * {{.DIST_DIR}}
file_server
try_files {path} {path}.html {path}/index.html{{if .IndexFallback}} /index.html{{end}}
}
}