diff --git a/build.washingtonpost.com/next.config.js b/build.washingtonpost.com/next.config.js index c49c5317e..5a0117f91 100644 --- a/build.washingtonpost.com/next.config.js +++ b/build.washingtonpost.com/next.config.js @@ -94,6 +94,11 @@ module.exports = withBundleAnalyzer({ destination: "/resources/tools/tachyons-to-stitches", permanent: false, }, + { + source: "/storybook", + destination: "https://wpds-ui-kit-storybook.preview.now.washingtonpost.com", + permanent: false, + }, ]; }, }); diff --git a/build.washingtonpost.com/vercel.json b/build.washingtonpost.com/vercel.json index aa6eca9d2..0cbee0db3 100644 --- a/build.washingtonpost.com/vercel.json +++ b/build.washingtonpost.com/vercel.json @@ -28,9 +28,9 @@ "source": "/support", "destination": "/resources/process/support" }, - { - "source": "/zzz/tachyons-to-stitches", - "destination": "/resources/tools/tachyons-to-stitches" - } + { + "source": "/zzz/tachyons-to-stitches", + "destination": "/resources/tools/tachyons-to-stitches" + } ] } diff --git a/vercel.json b/vercel.json index ae4447bfa..3492e527f 100644 --- a/vercel.json +++ b/vercel.json @@ -1,11 +1,10 @@ { - "rewrites": [ - { "source": "/storybook", "destination": "/storybook/index.html" }, - { "source": "/stories.json", "destination": "/storybook/stories.json" }, + "regions": ["sfo1", "iad1"], + "redirects": [ { - "source": "/storybook/:slug", - "destination": "/storybook/:slug" + "source": "/storybook", + "destination": "https://wpds-ui-kit-storybook.preview.now.washingtonpost.com", + "permanent": false } - ], - "regions": ["sfo1", "iad1"] + ] }