hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
985 stars 376 forks source link

add config for trailing slash #54

Closed praveenweb closed 4 years ago

praveenweb commented 4 years ago

Gatsby enforces trailing slash by default. The plugingatsby-plugin-remove-trailing-slashes makes a redirect to remove the slash. This PR adds an optional config to enforce trailing slash, the default gatsby behaviour.

The default behaviour for this starter before (and still) was to apply the plugin to remove the trailing slash. Now this PR makes it configurable to opt in for trailing slash.