Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

How - To Setup Redirects For A Next.js Site On Netlify

To use a [TODO: Code shorthand span ] file, set one up in the root of your project then change your [TODO: Code shorthand span ] line in [TODO: Code shorthand span ] to :

"build": "next build && cp _redirects .next/",

That puts the file in the right place at the end of the build process.

via : https : //docs.netlify.com/routing/redirects/

which says : "Save a plain text file called [TODO: Code shorthand span ] without a file extension to the publish directory of your site." but doesn't tell you how to actually do it.

TODO : put in syntax

Note : saw this in the build page of netlify :

A _redirects file is present in the repository but is missing in the publish directory ".next".

That was before I pushed it in with that package.json update.