This repo aims to cover an exhaustive combination of static site generators and hosting providers, and suggest some possible solutions. Important: Git

slorber / trailing-slash-guide

submited by
Style Pass
2021-06-08 14:00:10

This repo aims to cover an exhaustive combination of static site generators and hosting providers, and suggest some possible solutions.

Important: GitHub Pages is historically one of the most popular and free option to host a static website. In 2021, there are better free alternatives, offering more features.

Netlify has a setting Post Processing > Asset Optimization > Pretty Urls that affects the way a static site is served. Disabling the Pretty Urls setting can help prevent Netlify to add an unwanted trailing slash.

VERY IMPORTANT: the global checkbox Disable asset optimization is confusing and does not really disable the Pretty Urls settings in practice: make sure to uncheck all the Asset optimization independently.

Important: make sure the Pretty Urls checkbox is really unchecked (ie, don't use the broken Disable asset optimization global checkbox).

Important: surprisingly, next export creates by default /myPath.html (when trailingSlash: false) but this pattern is not well supported by Vercel.

Leave a Comment
Related Posts