mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* 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
16 lines
253 B
Caddyfile
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}}
|
|
}
|
|
}
|