1.0.1 • Published 3 years ago
nuxt-trailing-slash v1.0.1
nuxt-trailing-slash
Module add server middleware that redirect all routes to slashed. Useful to maintain only slashed routes and load reduction.
💿 Installation
First install
# for npm
npm install nuxt-trailing-slash --save
# for yarn
yarn add nuxt-trailing-slash
After the installation in the previous section, you need to add nuxt-trailing-slash
module to modules
options of nuxt.confg.[ts|js]
// nuxt.config.ts
export default defineNuxtConfig({
// ...
modules: ['nuxt-trailing-slash']
// ...
})
©️ LICENSE
MIT