diff --git a/docs/get-started/nextjs.md b/docs/get-started/nextjs.md index 1b6b1d060ff7..c0b309753023 100644 --- a/docs/get-started/nextjs.md +++ b/docs/get-started/nextjs.md @@ -901,20 +901,10 @@ The available options are: #### `builder` -Type: - -```ts -{ - useSWC?: boolean; -} -``` +Type: `Record` Configure options for the [framework's builder](../api/main-config-framework.md#optionsbuilder). For Next.js, that builder is Webpack 5. -##### `builder.useSWC` - -Use the SWC compiler instead of Babel. [More information is available here.](../api/main-config-framework.md#optionsbuilderuseswc) - #### `image` Type: `object` diff --git a/docs/snippets/react/nextjs-add-framework.js.mdx b/docs/snippets/react/nextjs-add-framework.js.mdx index 9818bf4165ab..620630a1322a 100644 --- a/docs/snippets/react/nextjs-add-framework.js.mdx +++ b/docs/snippets/react/nextjs-add-framework.js.mdx @@ -2,15 +2,7 @@ // .storybook/main.js export default { // ... - framework: { - // name: '@storybook/react-webpack5', // 👈 Remove this - name: '@storybook/nextjs', // 👈 Add this - options: { - builder: { - // Set useSWC to true if you want to try out the experimental SWC compiler in Next.js >= 14.0.0 - useSWC: true, - }, - }, - }, + // framework: '@storybook/react-webpack5', 👈 Remove this + framework: '@storybook/nextjs', // 👈 Add this }; ``` diff --git a/docs/snippets/react/nextjs-add-framework.ts.mdx b/docs/snippets/react/nextjs-add-framework.ts.mdx index 9983a46cea2e..945bc22217b3 100644 --- a/docs/snippets/react/nextjs-add-framework.ts.mdx +++ b/docs/snippets/react/nextjs-add-framework.ts.mdx @@ -4,16 +4,8 @@ import { StorybookConfig } from '@storybook/nextjs'; const config: StorybookConfig = { // ... - framework: { - // name: '@storybook/react-webpack5', // 👈 Remove this - name: '@storybook/nextjs', // 👈 Add this - options: { - builder: { - // Set useSWC to true if you want to try out the experimental SWC compiler in Next.js >= 14.0.0 - useSWC: true, - }, - }, - }, + // framework: '@storybook/react-webpack5', 👈 Remove this + framework: '@storybook/nextjs', // 👈 Add this }; export default config;