Skip to content

Commit

Permalink
Merge pull request #28875 from storybookjs/yann/enable-next-vite-sand…
Browse files Browse the repository at this point in the history
…boxes

Build: Enable Nextjs-Vite sandboxes
  • Loading branch information
yannbf committed Aug 13, 2024
2 parents ac162a5 + cf7ddab commit d2e377d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -814,30 +814,30 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 37
parallelism: 38
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 37
parallelism: 38
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 34
parallelism: 35
requires:
- build-sandboxes
- e2e-production:
parallelism: 32
parallelism: 33
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 32
parallelism: 33
requires:
- build-sandboxes
- test-portable-stories:
Expand Down
2 changes: 0 additions & 2 deletions code/lib/cli-storybook/src/sandbox-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,11 @@ const baseTemplates = {
name: 'Next.js Latest (Vite | TypeScript)',
script:
'yarn create next-app {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir',
inDevelopment: true,
expected: {
framework: '@storybook/experimental-nextjs-vite',
renderer: '@storybook/react',
builder: '@storybook/builder-vite',
},

modifications: {
mainConfig: {
framework: '@storybook/experimental-nextjs-vite',
Expand Down
3 changes: 1 addition & 2 deletions scripts/tasks/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export const generate: Task = {
}

// This uses an async import as it depends on `lib/cli` which requires `code` to be installed.
// @ts-expect-error Default import required for dynamic import processed by esbuild
const { generate: generateRepro } = (await import('../sandbox/generate.ts')).default;
const { generate: generateRepro } = await import('../sandbox/generate');

await generateRepro({
templates: [details.key],
Expand Down

0 comments on commit d2e377d

Please sign in to comment.