Skip to content

Commit

Permalink
Nuke
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Jun 21, 2024
1 parent 81fd244 commit d6a47c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 337 deletions.
305 changes: 0 additions & 305 deletions apps/frontpage/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,309 +83,4 @@ module.exports = {
'/docs/**': ['./content/docs/**'],
},
},
async redirects() {
// Add the wild cards at the bottom of the list
// to avoid conflicts with the more specific redirects
return [
// TODO: Are we adding /docs/index.mdx to all versions?
{
source: '/docs/get-started',
destination: '/docs',
permanent: true,
},
{
source: '/telemetry',
destination: '/docs/configure/telemetry',
permanent: true,
},
{
source: '/status',
destination: 'https://github.com/storybookjs/storybook/issues/23279',
permanent: false,
},
{
source: '/versions.json',
destination: '/versions',
permanent: true,
},
{
source: '/design-system',
destination: 'https://master--5ccbc373887ca40020446347.chromatic.com',
permanent: true,
},
{
source: '/migration-guides/7.0',
destination: 'https://storybook.js.org/docs/7.0/migration-guide',
permanent: true,
},
{
source: '/migration-guides/8.0',
destination: 'https://storybook.js.org/docs/8.0/migration-guide',
permanent: true,
},
/* Supporting old docs URLs */
{
source: '/basics/slow-start-guide',
destination: '/docs/configure',
permanent: true,
},
{
source: '/docs/basics/slow-start-guide',
destination: '/docs/configure',
permanent: true,
},
{
source: '/docs/guides/slow-start-guide',
destination: '/docs/configure',
permanent: true,
},
{
source: '/basics/guide-react-native',
destination:
'https://github.com/storybookjs/react-native#storybook-for-react-native',
permanent: true,
},
{
source: '/docs/basics/guide-react-native',
destination:
'https://github.com/storybookjs/react-native#storybook-for-react-native',
permanent: true,
},
{
source: '/docs/guides/guide-react-native',
destination:
'https://github.com/storybookjs/react-native#storybook-for-react-native',
permanent: true,
},
{
source: '/docs/basics/writing-stories',
destination: '/docs/get-started/whats-a-story',
permanent: true,
},
{
source: '/docs/basics/exporting-storybook',
destination: '/docs/sharing/publish-storybook',
permanent: true,
},
{
source: '/docs/basics/faq',
destination: '/docs/faq',
permanent: true,
},
{
source: '/docs/basics/live-examples',
destination:
'https://github.com/storybookjs/storybook/blob/next/examples/README.md',
permanent: true,
},
{
source: '/docs/configurations/options-parameter',
destination: '/docs/configure/features-and-behavior',
permanent: true,
},
{
source: '/docs/configurations/custom-webpack-config',
destination: '/docs/builders/webpack',
permanent: true,
},
{
source: '/docs/configurations/custom-babel-config',
destination: '/docs/configure/compilers',
permanent: true,
},
{
source: '/docs/configurations/typescript-config',
destination: '/docs/configure/typescript',
permanent: true,
},
{
source: '/docs/configurations/add-custom-head-tags',
destination: '/docs/configure/story-rendering#adding-to-head',
permanent: true,
},
{
source: '/docs/configurations/add-custom-body',
destination: '/docs/configure/story-rendering#adding-to-body',
permanent: true,
},
{
source: '/docs/configurations/serving-static-files',
destination:
'/docs/configure/images-and-assets#serving-static-files-via-storybook',
permanent: true,
},
{
source: '/docs/configurations/env-vars',
destination: '/docs/configure/environment-variables',
permanent: true,
},
{
source: '/docs/configurations/theming',
destination: '/docs/configure/theming',
permanent: true,
},
{
source: '/docs/configurations/cli-options',
destination: '/docs/api/cli-options',
permanent: true,
},
{
source: '/docs/configurations/standalone-options',
destination:
'https://github.com/storybookjs/storybook/blob/next/lib/core/docs/standalone.md',
permanent: true,
},
{
source: '/docs/formats/component-story-format',
destination: '/docs/api/csf',
permanent: true,
},
{
source: '/docs/formats/storiesof-api',
destination:
'https://github.com/storybookjs/storybook/blob/next/lib/core/docs/storiesOf.md',
permanent: true,
},
{
source: '/docs/formats/mdx-syntax',
destination: '/docs/writing-docs/mdx',
permanent: true,
},
{
source: '/docs/testing/react-ui-testing',
destination: '/docs/writing-tests',
permanent: true,
},
{
source: '/docs/testing/structural-testing',
destination: '/docs/writing-tests/snapshot-testing',
permanent: true,
},
{
source: '/docs/testing/interaction-testing',
destination: '/docs/writing-tests/interaction-testing',
permanent: true,
},
{
source: '/docs/testing/automated-visual-testing',
destination: '/docs/writing-tests/visual-testing',
permanent: true,
},
{
source: '/docs/testing/manual-testing',
destination: '/docs/writing-tests',
permanent: true,
},
{
source: '/docs/addons/using-addons',
destination: '/docs/addons/install-addons',
permanent: true,
},
{
source: '/addons/writing-addons',
destination: '/docs/addons/writing-addons',
permanent: true,
},
{
source: '/docs/addons/api',
destination: '/docs/addons/addons-api',
permanent: true,
},
{
source: '/docs/presets/introduction',
destination: '/docs/addons/writing-presets',
permanent: true,
},
{
source: '/docs/presets/preset-gallery',
destination: 'https://github.com/storybookjs/presets',
permanent: true,
},
{
source: '/docs/presets/writing-presets',
destination: '/docs/addons/writing-presets',
permanent: true,
},
...renderers.map((r) => ({
source: `/docs${r}/get-started/examples`,
destination: '/showcase',
permanent: true,
})),
...historicalVersions.map((v) => ({
source: `/docs/${v}`,
destination: `/docs/${v.split('.')[0]}/get-started/install`,
permanent: true,
})),
// The `/get-started` route is only valid for 8.0+
...historicalVersions.reduce((acc, v) => {
if (Number(v) < 8) {
renderers.forEach((r) => {
acc.push({
source: `/docs/${v}/${r}/get-started`,
destination: `/docs/${v.split('.')[0]}/get-started/install`,
permanent: true,
});
});
}
return acc;
}, []),
...generatedRedirects,
/* 🐺 Wild Cards */
{
source: '/basics/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/docs/basics/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/configurations/:path*',
destination: '/docs/configure',
permanent: true,
},
{
source: '/docs/configurations/:path*',
destination: '/docs/configure',
permanent: true,
},
{
source: '/examples/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/docs/examples/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/logos/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/docs/logos/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/testing/:path*',
destination: '/docs',
permanent: true,
},
{
source: '/docs/testing/:path*',
destination: '/docs/writing-tests',
permanent: true,
},
{
source: '/docs/guides/:path*',
destination: '/docs',
permanent: true,
},
];
},
};
32 changes: 0 additions & 32 deletions apps/frontpage/vercel.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,8 @@
{
"rewrites": [
{
"source": "/blog/:match*",
"destination": "https://storybook-blog.netlify.app/blog/:match*"
},
{
"source": "/day/:match*",
"destination": "https://storybook-day-2023.netlify.app/day/:match*"
},
{
"source": "/integrations/:match*",
"destination": "https://storybook-web-addons.netlify.app/integrations/:match*"
},
{
"source": "/showcase/:match*",
"destination": "https://storybook-component-catalog.netlify.app/showcase/:match*"
},
{
"source": "/tutorials/:match*",
"destination": "https://storybook-tutorials.netlify.app/tutorials/:match*"
},
{
"source": "/event-log",
"destination": "https://us-central1-storybook-warehouse.cloudfunctions.net/storybook-event-log-production-event-log"
},
{
"source": "/whats-new/v1/:match*",
"destination": "https://storybook-dx.netlify.app/.netlify/functions/whats-new/:match*"
},
{
"source": "/sb-event/js/script.js",
"destination": "https://plausible.io/js/script.js"
},
{
"source": "/sb-event/api/event",
"destination": "https://plausible.io/api/event"
}
]
}

0 comments on commit d6a47c0

Please sign in to comment.