diff --git a/next.config.mjs b/next.config.mjs index 7c5884af..8faaae44 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -25,6 +25,77 @@ const nextConfig = { }, redirects() { return [ + { + source: "/guide/how-to-use-sitemaps", + destination: "/docs/how-to/sitemaps/", + permanent: true, + }, + { + source: "/guide/how-to-create-a-plugin", + destination: "/docs/how-to/create-a-plugin/", + permanent: true, + }, + { + source: "/guide/how-to-use-apollo-in-faust", + destination: "/docs/how-to/use-wpgraphql-smart-cache/", + permanent: true, + }, + { + source: "/guide/how-to-setup-post-and-page-previews", + destination: "/docs/how-to/post-previews/", + permanent: true, + }, + { + source: "/guide/how-to-handle-authentication", + destination: "/docs/how-to/authentication/", + permanent: true, + }, + { + source: "/guide/how-to-implement-typescript", + destination: "/docs/how-to/generate-types-with-graphql-codegen/", + permanent: true, + }, + { + source: "/tutorial/get-started-with-wp-graphql-content-blocks", + destination: "/docs/how-to/rendering-blocks/", + permanent: true, + }, + { + source: "/tutorial/getting-started-with-the-experimental-app-router", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/getting-started.md", + permanent: true, + }, + { + source: "/reference/faustroutehandler", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/faustroutehandler.md", + permanent: true, + }, + { + source: "/reference/getauthclient", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/getauthclient.md", + permanent: true, + }, + { + source: "/reference/getclient", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/getclient.md", + permanent: true, + }, + { + source: "/reference/onlogin-server-action", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/onlogin-server-action.md", + permanent: true, + }, + { + source: "/reference/onlogout-server-action", + destination: + "https://github.com/wpengine/faustjs/blob/archive-experimental-app-router/packages/experimental-app-router/docs/onlogout-server-action.md", + permanent: true, + }, { source: "/discord", destination: "https://discord.gg/headless-wordpress-836253505944813629",