v1.0.0
Banish or add trailing slashes with a Netlify edge function
Repository
Current version released
2 years ago
Strip or add trailing slash
Banish or enforce trailing slashes with Netlify edge functions. Demo
Usage
- Copy the appropriate function from
/netlify/edge-functions/
to your site’s/netlify/edge-functions/
directory. - Add a declaration to your site’s
netlify.toml
:
[[edge_functions]]
function = "strip-slash" # or "add-slash"
path = "/*"
Licence: MIT