Add a slask / at the end of every routes in Nuxt.js
问题 For a purpose of SEO i've been asked to add a slash at the end of every routes of my nuxt project. For example myapp.com/company should be myapp.com/company/ Is there a clean way to do that in Nuxt ? 回答1: ok i found the solution by writting a redirection in a middleware on serverside, so first i added to nuxt.config.js this : serverMiddleware: ["~/servermiddleware/seo.js"], then i created this file /servermiddleware/seo.js : const redirects = require('../301.json'); module.exports = function