diff --git a/packages/next-plugin-storybook/preset.js b/packages/next-plugin-storybook/preset.js index 372fa9b341bec..9f737d3a29ce9 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: { beforeFiles: [], afterFiles: [], fallback: [] }, }) config.plugins = [...config.plugins, ...nextWebpackConfig.plugins]