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
  • Loading branch information
valentinpalkovic authored Feb 5, 2024
2 parents 39cc4da + 8b80246 commit dda2226
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 @@ -110,10 +110,7 @@ export const babel: PresetProperty<'babel'> = async (baseConfig: TransformOption
};

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

0 comments on commit dda2226

Please sign in to comment.