diff --git a/packages/create-nextjs-storybook/src/index.ts b/packages/create-nextjs-storybook/src/index.ts index 8d51a0c..230bc73 100644 --- a/packages/create-nextjs-storybook/src/index.ts +++ b/packages/create-nextjs-storybook/src/index.ts @@ -19,7 +19,7 @@ import { codeLog } from './cli/helpers.js'; const logger = console; const DIRNAME = new URL('.', import.meta.url).pathname; -const VERSION = '0.0.0-pr-24447-sha-c98bddd2'; +const VERSION = '0.0.0-pr-25086-sha-b3010f16'; const ensureDirShallow = async (path: string) => mkdir(path).catch(() => {}); diff --git a/packages/nextjs-server/package.json b/packages/nextjs-server/package.json index f30d1d9..af3b3d5 100644 --- a/packages/nextjs-server/package.json +++ b/packages/nextjs-server/package.json @@ -110,7 +110,7 @@ "typescript": "^5.3.2" }, "peerDependencies": { - "next": "^14", + "next": "^14.0.5", "react": "^16.8.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, diff --git a/packages/nextjs-server/src/indexers.ts b/packages/nextjs-server/src/indexers.ts index 1f5587d..547423a 100644 --- a/packages/nextjs-server/src/indexers.ts +++ b/packages/nextjs-server/src/indexers.ts @@ -68,7 +68,7 @@ export const appIndexer = ( const Composed = composeStory(stories.${exportName}, stories.default, projectAnnotations?.default || {}, '${exportName}'); const extraArgs = await getArgs(Composed.id); - const { id, parameters, argTypes, initialArgs } = Composed; + const { id, parameters, argTypes, args: initialArgs } = Composed; const args = { ...initialArgs, ...extraArgs }; const storyAnnotations: StoryAnnotations = {