Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nextjs override page route

module.exports = {
  async rewrites() {
    return [
      {
        source: '/about', // this will the new route
        destination: '/', // this is the old route
      },
    ]
  },
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #nextjs #override #page #route
ADD COMMENT
Topic
Name
8+3 =