Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS: Autoconfigure public directory for new projects #25279

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

shilman
Copy link
Member

@shilman shilman commented Dec 20, 2023

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 merged commit 9adea6e into next Dec 29, 2023
57 of 58 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants