Skip to content

Commit ea1354f

Browse files
committed
update changeset
1 parent 8416a4d commit ea1354f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.changeset/short-candies-warn.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@ Fix `nextjs` plugin to work on all environments
88

99
- fix(ui): `nextjs` plugin to run properly on `NODE_ENV` environments: `production`, `development` and `test`
1010
- log file writes in `dev`
11+
12+
## Breaking changes
13+
14+
`withFlowbiteReact` now always returns async configuration (see: [Async Configuration](https://nextjs.org/docs/app/api-reference/config/next-config-js#async-configuration)) so make sure to wrap any other HOC (higher-order-functions) such as `withContentlayer` because most of them do not forward pass async config arguments (eg: `phase, options`)
15+
16+
```tsx
17+
// ❌ not working
18+
export default withContentlayer(withFlowbiteReact(nextConfig));
19+
20+
// ✅ working
21+
export default withFlowbiteReact(withContentlayer(nextConfig));
22+
```

0 commit comments

Comments
 (0)