-
Notifications
You must be signed in to change notification settings - Fork 695
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
.html
is stripped from URL
#732
Comments
Same Issue When visiting Library version is 14.0.1 |
@trusktr I found that this issue belongs to the core of We should create an Issue in that repository |
new issue: vercel/serve-handler#178 |
I think cleanUrls: false avoids this behavior. |
I tried to run this from serve.json file with the CLI command, but doesn't appear to have any effect.
hmm, not sure why or issit just me... |
@Glidias I got it working by with this command: serve src --config ../.serve.json ( and this {
"cleanUrls": false,
"redirects": [{ "source": "/", "destination": "/index.html", "type": 301 }]
} However, I’ve noticed that In the end I turned out ditching http-server src -p 3000 -d false --no-dotfiles |
@bramus |
@bramus Thanks. I thought this I'm ditching it in favor of |
A config file in |
Description
When visiting
localhost:3000/foo.html
,serve
strips the.html
so it becomeslocalhost:3000/foo
.Library version
14.0.1
Node version
v16.13.2
The text was updated successfully, but these errors were encountered: