Skip to content

NextJS: Autoconfigure public directory for new projects#25279

Merged
shilman merged 2 commits into
nextfrom
shilman/nextjs-public-dir
Dec 29, 2023
Merged

NextJS: Autoconfigure public directory for new projects#25279
shilman merged 2 commits into
nextfrom
shilman/nextjs-public-dir

Conversation

@shilman

@shilman shilman commented Dec 20, 2023

Copy link
Copy Markdown
Member

Closes N/A

What I did

When you install Storybook in a NextJS project, autoconfigure the public directory if it exists.

This eliminates a configuration step which can be confusing when using MSW.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

  • Create a sandbox and observe the public directory has been added to main.ts

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

@shilman shilman added feature request nextjs ci:normal Run our default set of CI jobs (choose this for most PRs). labels Dec 20, 2023
@shilman shilman merged commit 9adea6e into next Dec 29, 2023
@shilman shilman deleted the shilman/nextjs-public-dir branch December 29, 2023 11:29
@github-actions github-actions Bot mentioned this pull request Dec 29, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:normal Run our default set of CI jobs (choose this for most PRs). feature request nextjs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants