-
-
Notifications
You must be signed in to change notification settings - Fork 476
Fix nextjs plugin to work on all environments
#1612
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
Fix nextjs plugin to work on all environments
#1612
Conversation
🦋 Changeset detectedLatest commit: ea1354f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Caution Review failedThe pull request is closed. WalkthroughThis change refactors the Changes
Sequence Diagram(s)sequenceDiagram
participant NextJS as Next.js
participant Flowbite as withFlowbiteReact
participant Contentlayer as withContentlayer
participant Dev as dev()/build()
NextJS->>Flowbite: Load config (phase, options)
Flowbite->>Dev: Run dev() or build() (once per process)
Flowbite->>Contentlayer: Pass config to withContentlayer
Contentlayer->>NextJS: Return final config
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Fix
nextjsplugin to work on all environmentsChanges
nextjsplugin to run properly onNODE_ENVenvironments:production,developmentandtestdevBreaking changes
withFlowbiteReactnow always returns async configuration (see: Async Configuration) so make sure to wrap any other HOC (higher-order-functions) such aswithContentlayerbecause most of them do not forward pass async config arguments (eg:phase, options)Summary by CodeRabbit
Bug Fixes
New Features
Refactor