VitePress docs describe the feature nicely:
Some servers or hosting platforms (for example Netlify, Vercel, GitHub Pages) provide the ability to map a URL like /foo to /foo.html if it exists, without a redirect:
Netlify and GitHub Pages support this by default.
Vercel requires enabling the cleanUrls option in vercel.json.
https://vitepress.dev/guide/routing#generating-clean-url
It almost looks like the redirects feature could do it, but the syntax doesn't support removing the extension.
I found the redirect handling here
func(o*Options)matchRedirects(ctx*context.Context,giteaClient*gitea.Client,redirects[]Redirect,redirectsCachecache.ICache)(finalbool){
Is this something that you'd consider supporting?
Perhaps it'd be something like:
# in _redirects
/*.html /:splat 200
Or a way to support it automagically like netlify and GitHub pages?
VitePress docs describe the feature nicely:
> Some servers or hosting platforms (for example Netlify, Vercel, GitHub Pages) provide the ability to map a URL like /foo to /foo.html if it exists, without a redirect:
>
> Netlify and GitHub Pages support this by default.
> Vercel requires enabling the cleanUrls option in vercel.json.
https://vitepress.dev/guide/routing#generating-clean-url
It _almost_ looks like the [redirects feature](https://docs.codeberg.org/codeberg-pages/redirects/) could do it, but the syntax doesn't support removing the extension.
I found the redirect handling here https://codeberg.org/Codeberg/pages-server/src/commit/a6e9510c078758794da5f6a1983b595bfc415de9/server/upstream/redirects.go#L66
Is this something that you'd consider supporting?
Perhaps it'd be something like:
```
# in _redirects
/*.html /:splat 200
```
Or a way to support it automagically like netlify and GitHub pages?