You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(next): fix hmr, bump minimum required next.js 16 version to 16.2.2 (#16202)
Next.js <16.2.2 requires the `--no-server-fast-refresh` flag appended to
the `next dev` command in order for HMR to work. In 16.2.2, we can now
set `experimental.enableServerFastRefresh` to disable server fast
refresh, which fixes HMR for all users, without requiring a new flag.
This PR:
- bumps the minimum required Next.js 16 version to 16.2.2
- sets `experimental.enableServerFastRefresh` if Next.js >=16.2.2 is
detected
- bumps Next.js to 16.2.2 in our monorepo and all templates
- logs a console warning for all users using Next.js 16 - 16.2.1
After release, we'll remove the `--no-server-fast-refresh` flag from our
templates in a separate PR. We cannot do it in this PR, as a newer
Payload version is required
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/1213971891044433
Copy file name to clipboardExpand all lines: docs/getting-started/installation.mdx
+1-12Lines changed: 1 addition & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Payload requires the following software:
16
16
-`15.2.9` - `15.2.x`
17
17
-`15.3.9` - `15.3.x`
18
18
-`15.4.11` - `15.4.x`
19
-
-`16.2.0`+
19
+
-`16.2.2`+
20
20
- Any [compatible database](/docs/database/overview) (MongoDB, Postgres or SQLite)
21
21
22
22
<Bannertype="warning">
@@ -25,17 +25,6 @@ Payload requires the following software:
25
25
sure you're using one of the supported version ranges listed above.
26
26
</Banner>
27
27
28
-
<Bannertype="warning">
29
-
**Next.js 16.2+:** Server fast refresh (enabled by default) breaks Payload HMR - config changes won't propagate until a full server restart. Add `--no-server-fast-refresh` to your dev command as a workaround:
30
-
31
-
```bash
32
-
next dev --no-server-fast-refresh
33
-
```
34
-
35
-
This is a temporary workaround until the upstream issue is resolved.
36
-
37
-
</Banner>
38
-
39
28
<Bannertype="info">
40
29
**Cache Components:** While Next.js `cacheComponents` can be enabled alongside
41
30
Payload without causing errors in the admin panel, full compatibility is not
'Payload detected a non-zero value for the `staleTimes.dynamic` option in your Next.js config. This will slow down page transitions and may cause stale data to load within the Admin panel. To clear this warning, remove the `staleTimes.dynamic` option from your Next.js config or set it to 0. In the future, Next.js may support scoping this option to specific routes.',
34
+
'Payload: detected a non-zero value for the `staleTimes.dynamic` option in your Next.js config. This will slow down page transitions and may cause stale data to load within the Admin panel. To clear this warning, remove the `staleTimes.dynamic` option from your Next.js config or set it to 0. In the future, Next.js may support scoping this option to specific routes.',
'Payload: You are using an unsupported Next.js 16 version. You can find the supported Next.js versions here: https://payloadcms.com/docs/getting-started/installation',
'Your Next.js version does not support using Turbopack for production builds. The *minimum* Next.js version required for Turbopack Builds is 16.1.0. Please upgrade to the latest supported Next.js version to resolve this error.',
50
+
'Payload: Your Next.js version does not support using Turbopack for production builds. The *minimum* Next.js version required for Turbopack Builds is 16.1.0. Please upgrade to the latest supported Next.js version to resolve this error.',
0 commit comments