Iβm trying to deploy a static site built with parcel.js that has a bunch of subpages with my dist folder looking like this:
π index.html
π about
π index.html
Now example.com/about/
works but example.com/about
(without trailing slash) returns a 404.
Is there any way to make paths without trailing slashes work in static sites since I have to support an existing url structure?
Vercel for example has configuration options for these settings.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Actually this is the default for a static website. So Digital Ocean seems in not static site compliant. Please solve this!
Hey @martin,
I donβt think that this is possible out of the box with static HTML sites unless you are using a library like React for example.
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what youβd like to see implemented.
Hope that helps!
- Bobby.