diff --git a/next.config.mjs b/next.config.mjs index 1dbc367a..8579ce2e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,7 +9,7 @@ import rehypeMdxImportMedia from "rehype-mdx-import-media"; import { rehypePrettyCode } from "rehype-pretty-code"; import rehypeSlug from "rehype-slug"; import remarkGfm from "remark-gfm"; -import redirectsOldSite from "./redirects-old-site.js"; +import redirectsOldSite from "./redirects-old-site.mjs"; import smartSearchPlugin from "./src/lib/smart-search-plugin.mjs"; const newRedirects = [ diff --git a/redirects-old-site.js b/redirects-old-site.mjs similarity index 88% rename from redirects-old-site.js rename to redirects-old-site.mjs index 8fcf3400..87b845b2 100644 --- a/redirects-old-site.js +++ b/redirects-old-site.mjs @@ -74,11 +74,6 @@ const redirectsOldSite = [ destination: "/docs/reference/blockset/", 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: @@ -127,7 +122,7 @@ const redirectsOldSite = [ }, { source: "/reference/useauth", - destination: "/docs/how-to/authentication//", + destination: "/docs/how-to/authentication/", permanent: true, }, { @@ -237,8 +232,8 @@ const redirectsOldSite = [ permanent: true, }, { - source: "/blog/faust-update-feb-3-2023", - destination: "/blog/", + source: "/faust-update-feb-3-2023", + destination: "/blog/sprint-28-update/", permanent: true, }, { @@ -277,28 +272,18 @@ const redirectsOldSite = [ permanent: true, }, { - source: "/blog/faust-update-mar-15-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/blog/faust-update-mar-1-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/blog/faust-update-mar-1-2023", - destination: "/blog/", + source: "/faust-update-mar-1-2023", + destination: "/blog/sprint-29-update/", permanent: true, }, { - source: "/blog/faust-update-may-01-2023", - destination: "/blog/", + source: "/faust-update-may-01-2023", + destination: "/blog/sprint-31-update/", permanent: true, }, { - source: "/blog/faust-update-jan-18-202", - destination: "/blog/", + source: "/faust-update-jan-18-2023", + destination: "/blog/sprint-27-update/", permanent: true, }, { @@ -306,11 +291,6 @@ const redirectsOldSite = [ destination: "/docs/", permanent: true, }, - { - source: "/guide/how-to-register-decoupled-blocks", - destination: "/docs/", - permanent: true, - }, { source: "/guide/how-to-use-apollo-dev-tools", destination: "/docs/", @@ -346,11 +326,6 @@ const redirectsOldSite = [ destination: "/docs/", permanent: true, }, - { - source: "/tutorial/getting-started-with-the-block-support-example-project", - destination: "/docs/", - permanent: true, - }, { source: "/guide/how-to-migrate-portfolio-blueprint-to-new-faust-js", destination: "/docs/", @@ -361,11 +336,6 @@ const redirectsOldSite = [ destination: "/docs/", permanent: true, }, - { - source: "/guide/how-to-create-a-block-from-a-third-party-plugin", - destination: "/docs/how-to/create-a-plugin/", - permanent: true, - }, { source: "/author/chriswiegman-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2", destination: "/", @@ -376,11 +346,6 @@ const redirectsOldSite = [ destination: "/", permanent: true, }, - { - source: "/guide/how-to-create-a-block-from-the-wordpress-blocks-list", - destination: "/docs/", - permanent: true, - }, { source: "/a-retrospective-on-4-years-of-faust-js", destination: "/blog/a-retrospective-on-4-years-of-faust-js/", @@ -393,7 +358,7 @@ const redirectsOldSite = [ }, { source: "/taking-customer-inspired-up-a-level", - destination: "/blog/", + destination: "/blog/taking-customer-inspired-up-a-level/", permanent: true, }, { @@ -459,37 +424,12 @@ const redirectsOldSite = [ }, { source: "/powered-by-faust", - destination: "/blog/", - permanent: true, - }, - { - source: "/faust-update-may-01-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/faust-update-mar-15-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/faust-update-mar-1-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/faust-update-feb-3-2023", - destination: "/blog/", - permanent: true, - }, - { - source: "/faust-update-jan-18-2023", - destination: "/blog/", + destination: "/blog/powered-by-faust/", permanent: true, }, { source: "/faust-update-jan-04-2023", - destination: "/blog/", + destination: "/blog/sprint-26-update/", permanent: true, }, { @@ -499,7 +439,7 @@ const redirectsOldSite = [ }, { source: "/sprint-24-update", - destination: "/blog/", + destination: "/blog/sprint-24-update/", permanent: true, }, { @@ -509,7 +449,7 @@ const redirectsOldSite = [ }, { source: "/sprint-22-update", - destination: "/blog/", + destination: "/blog/sprint-22-update/", permanent: true, }, { @@ -554,7 +494,7 @@ const redirectsOldSite = [ }, { source: "/the-future-of-faust", - destination: "/blog/", + destination: "/blog/the-future-of-faust-js/", permanent: true, }, {