/* URLs from v5.keystonejs.com */
const KEYSTONE_5 = [
  {
    source: '/quick-start',
    destination: 'https://v5.keystonejs.com/quick-start/',
    permanent: true,
  },
  {
    source: '/quick-start/adapters',
    destination: 'https://v5.keystonejs.com/quick-start/adapters',
    permanent: true,
  },
  {
    source: '/blog/:slug*',
    destination: 'https://v5.keystonejs.com/blog/:slug*',
    permanent: true,
  },
  {
    source: '/discussions/:slug*',
    destination: 'https://v5.keystonejs.com/discussions/:slug*',
    permanent: true,
  },
  // Old roadmap URL just redirects to the new roadmap
  {
    source: '/guides/road-map',
    destination: '/updates/roadmap',
    permanent: true,
  },
  // Linked to from google results (2021-06-28) and possibly elsewhere?
  {
    source: '/documentation',
    destination: '/docs',
    permanent: false,
  },
];

/* URLs from the original next.keystonejs.com website */
const ORIGINAL_NEXT = [
  {
    source: '/faqs',
    destination: '/',
    permanent: true,
  },
  { source: '/apis/:path*', destination: '/docs/apis/:path*', permanent: true },
  { source: '/examples', destination: '/docs/examples', permanent: true },
  {
    source: '/guides/_doc-field-intro',
    destination: '/docs/guides/document-fields',
    permanent: true,
  },
  {
    source: '/docs/guides/_doc-field-intro',
    destination: '/docs/guides/document-fields',
    permanent: true,
  },
  { source: '/guides/:path*', destination: '/docs/guides/:path*', permanent: true },
  {
    source: '/tutorials/embedded-mode-with-sqlite-nextjs',
    destination: '/docs/walkthroughs/embedded-mode-with-sqlite-nextjs',
    permanent: true,
  },
  {
    source: '/tutorials/getting-started-with-create-keystone-app',
    destination: '/docs/walkthroughs/getting-started-with-create-keystone-app',
    permanent: true,
  },
  { source: '/roadmap', destination: '/updates/roadmap', permanent: true },
  { source: '/whats-new', destination: '/updates/whats-new-in-v6', permanent: true },
];

module.exports = [...ORIGINAL_NEXT, ...KEYSTONE_5];

@@ -1,20 +1,904 @@
+/* URLs from v4.keystonejs.com */%0Aconst KEYSTONE_4 = %5B%0A  %7B%0A    source: '/docs/configuration',%0A    destination: 'https://v4.keystonejs.com/docs/configuration',%0A    permanent: true,%0A  %7D,%0A  %7B%0A    source: '/docs/database',%0A    destination: 'https://v4.keystonejs.com/api/field/options',%0A    permanent: true,%0A  %7D,%0A  %7B%0A    source: '/docs/getting-started',%0A    destination: 'https://v4.keystonejs.com/getting-started',%0A    permanent: true,%0A  %7D,%0A  %7B%0A    source: '/documentation/configuration/project-options',%0A    destination: 'https://v4.keystonejs.com/documentation/configuration/project-options',%0A    permanent: true,%0A  %7D,%0A  %7B%0A    source: '/documentation/database',%0A    destination: 'https://v4.keystonejs.com/documentation/database',%0A    permanent: true,%0A  %7D,%0A  %7B%0A    source: '/getting-started',%0A    destination: 'https://v4.keystonejs.com/getting-started',%0A    permanent: true,%0A  %7D,%0A%5D;%0A%0A
 /* URLs from v5.keys
@@ -2937,11 +2937,26 @@
 YSTONE_5
+, ...KEYSTONE_4
 %5D;%0A

Update redirects.js (#6064)