Skip to content

Commit

Permalink
Merge pull request #25907 from storybookjs/valentin/fix-framework-opt…
Browse files Browse the repository at this point in the history
…ions-resolution-nextjs

Next.js: Fix frameworkOptions resolution

(cherry picked from commit dda2226)
  • Loading branch information
valentinpalkovic authored and shilman committed Feb 6, 2024
1 parent a63a4f4 commit 1801d3d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/frameworks/nextjs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ export const babel = async (baseConfig: TransformOptions): Promise<TransformOpti
};

export const webpackFinal: StorybookConfig['webpackFinal'] = async (baseConfig, options) => {
const frameworkOptions = await options.presets.apply<{ options: FrameworkOptions }>(
'frameworkOptions'
);
const { options: { nextConfigPath, builder } = {} } = frameworkOptions;
const { nextConfigPath } = await options.presets.apply<FrameworkOptions>('frameworkOptions');
const nextConfig = await configureConfig({
baseConfig,
nextConfigPath,
Expand Down

0 comments on commit 1801d3d

Please sign in to comment.