-
Notifications
You must be signed in to change notification settings - Fork 153
Optionally emit page links with “.html” for static file servers that don’t support implicit extensions when routing #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is intentional behavior to produce “clean URLs”, and is what we want by default. This means that you need to use a static file server that supports clean URLs, such as http-server, GitHub Pages, Netlify, etc. Most hosting sites so this automatically. If we want to generate “non-clean” URLs, it should be opt-in through a configuration option. |
.html
from href
s
Ah, that's how long it's been since I've been habitually running my own dev web server. I switched from httpd to http-server and works for me now; thanks for the pointer. (I tried adding the appropriate option to httpd.conf and I still wasn't getting it to work, but I'm chalking that up to user error.) |
There should definitely be an option for emitting |
related #69 |
interesting read https://unterwaditzer.net/2023/cool-uris.html |
This will be handy spacially when want to run in docker with minimal storage footprint. E.g. busybox httpd server is < 10mb (This is what I want :) ) . Nginx static is like 40mb / if I use node then it will be 260+ MB |
I copied my
dist
folder to a basic web server. The index file loaded, but the links to pages like Observable GitHub fail to load because the URL specified was just to/github
instead of/github.html
.The text was updated successfully, but these errors were encountered: