Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Node-based script required for redirection #984

Open
amitbauriya opened this issue Mar 29, 2022 · 0 comments
Open

Node-based script required for redirection #984

amitbauriya opened this issue Mar 29, 2022 · 0 comments

Comments

@amitbauriya
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant