Hey Team,
I know Static sites is more for spa apps, but I have a astro app that exports static pages.
whenever I try any route even when it does not exist, it returns the html.
I noticed this line in the config, it always return the html.
|
try_files {path} {path}.html {path}/index.html /index.html |
I know it's could not be a bug but can you provide an option to activate / deactivate the behavior?
like in the Staticfile something like
root: dist
spa: true/false
Best
Omar
Hey Team,
I know Static sites is more for spa apps, but I have a astro app that exports static pages.
whenever I try any route even when it does not exist, it returns the html.
I noticed this line in the config, it always return the html.
railpack/core/providers/staticfile/Caddyfile.template
Line 51 in 3f39982
I know it's could not be a bug but can you provide an option to activate / deactivate the behavior?
like in the
Staticfilesomething likeBest
Omar