From 641c978f4d98c6abd81b481306829f28a32e17a5 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 23 Oct 2024 17:33:43 +0200 Subject: [PATCH] Use next 14 for next-vite as well --- code/lib/cli-storybook/src/sandbox-templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/cli-storybook/src/sandbox-templates.ts b/code/lib/cli-storybook/src/sandbox-templates.ts index 8ae1362564ce..bf38070e0161 100644 --- a/code/lib/cli-storybook/src/sandbox-templates.ts +++ b/code/lib/cli-storybook/src/sandbox-templates.ts @@ -210,7 +210,7 @@ const baseTemplates = { 'experimental-nextjs-vite/default-ts': { name: 'Next.js Latest (Vite | TypeScript)', script: - 'yarn create next-app {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', + 'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir', expected: { framework: '@storybook/experimental-nextjs-vite', renderer: '@storybook/react',