Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hides external packages warning
If storage-s3 is installed, the following turbopack warning will be thrown:
We cannot fix this until Next.js implements vercel/next.js#76991, so this PR hides the warning for now. On Next.js 16, this would be an error, but we can't hide or fix that.
Alternatively, we can fix this in Payload 4.0, by requiring users to install the aws sdk as a peerDependency.
Throws warning on Next.js 15.2.x
The minimum Next.js version we currently support is 15.2.3. Unfortunately, the Next.js config
turbopackproperty was added in 15.3.0. On 15.2.3, the following warning is thrown if you use Payload:Unrecognized key(s) in object: 'turbopack'Unfortunately we cannot remove this property, as Next.js 16 will throw a warning if we do. Instead, this PR throws a new, consecutive warning that prompts the user to bump their Next.js version or explains that this warning can be ignored: