From 1801d3da86a25f5526f1eb0d5e151f48bd2d2899 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Mon, 5 Feb 2024 12:59:31 +0100 Subject: [PATCH] Merge pull request #25907 from storybookjs/valentin/fix-framework-options-resolution-nextjs Next.js: Fix frameworkOptions resolution (cherry picked from commit dda22268517d1c4aba870bd55b557616a8b87463) --- code/frameworks/nextjs/src/preset.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/frameworks/nextjs/src/preset.ts b/code/frameworks/nextjs/src/preset.ts index 17172c10ff55..e974503ae0d9 100644 --- a/code/frameworks/nextjs/src/preset.ts +++ b/code/frameworks/nextjs/src/preset.ts @@ -104,10 +104,7 @@ export const babel = async (baseConfig: TransformOptions): Promise { - const frameworkOptions = await options.presets.apply<{ options: FrameworkOptions }>( - 'frameworkOptions' - ); - const { options: { nextConfigPath, builder } = {} } = frameworkOptions; + const { nextConfigPath } = await options.presets.apply('frameworkOptions'); const nextConfig = await configureConfig({ baseConfig, nextConfigPath,