nextjs-wordpress-starter icon indicating copy to clipboard operation
nextjs-wordpress-starter copied to clipboard

Node-based script required for redirection

Open amitbauriya opened this issue 2 years ago • 0 comments

Using Yoast SEO’s Redirect Manager, the client was able to import over 1,000 URLs and then manage every aspect of where they wanted them to point. Since Next.js supports redirects, we wrote a Node-based script that queries the list of 301 redirects via GraphQL, and writes them to redirects file at build time, which is then imported into next.config.js.

Please provide us the script and more detail on 'yarn build-redirects' command

amitbauriya avatar Mar 29 '22 11:03 amitbauriya