From 6a1608b7652549dee47e752ba6fc7c359a564575 Mon Sep 17 00:00:00 2001 From: Eric Burel Date: Wed, 28 Oct 2020 08:33:26 +0100 Subject: [PATCH 1/2] add rewrites in storybook preset --- packages/next-plugin-storybook/preset.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next-plugin-storybook/preset.js b/packages/next-plugin-storybook/preset.js index 83b84429c4721..cc3f56beac23a 100644 --- a/packages/next-plugin-storybook/preset.js +++ b/packages/next-plugin-storybook/preset.js @@ -15,6 +15,7 @@ async function webpackFinal(config) { target: 'server', config: nextConfig, buildId: 'storybook', + rewrites: [] }) config.plugins = [...config.plugins, ...nextWebpackConfig.plugins] From e3076a30915c9ec01145a61e693d359fea16451b Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Tue, 3 Nov 2020 09:50:07 -0500 Subject: [PATCH 2/2] fix format --- packages/next-plugin-storybook/preset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next-plugin-storybook/preset.js b/packages/next-plugin-storybook/preset.js index cc3f56beac23a..57f3605ea321b 100644 --- a/packages/next-plugin-storybook/preset.js +++ b/packages/next-plugin-storybook/preset.js @@ -15,7 +15,7 @@ async function webpackFinal(config) { target: 'server', config: nextConfig, buildId: 'storybook', - rewrites: [] + rewrites: [], }) config.plugins = [...config.plugins, ...nextWebpackConfig.plugins]