npm / @payloadcms/next
@payloadcms/next
What changed in @payloadcms/next 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
58 breaking16 security1 deprecations10 new APIs and options1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@payloadcms/next 386 changes
Breaking changes 58
Remove this config property; Payload relies on Next.js for bundling instead of bundling the Admin Panel itself.
Collapsible Field labels now use a Custom Component file path rather than a plain string or record.
Array Field row labels now use a Custom Component file path rather than a plain string or record.
View Tab
hrefandisActivefunctions no longer receive the React Routermatchorlocationarguments.This Custom Component key replaces
admin.components.views[key].Tab.pillLabel.This Payload Config property has been removed; customize
(payload)/custom.cssor import a stylesheet through a custom provider.For Collections, Globals, and Fields, this property no longer accepts a React Component; define the component in the corresponding
admin.componentslocation.This property is replaced by
admin.icons, whose entries usepathandsizes.Configure favicon icons with an array of entries containing
pathandsizes.This property is consolidated into
admin.routes.inactivity.This property has been removed from the Payload Config.
Its function arguments no longer include
documentInfo; they now includecollectionConfigandglobalConfig.This property is consolidated into
admin.routes.logout.This property is replaced by
admin.meta.openGraph.images.Configure Admin Panel Open Graph images through this property, replacing
admin.meta.ogImage.This property consolidates the logout and inactivity route configuration under
logoutandinactivitykeys.Default view keys are now camelcase, such as
account,edit, anddefault.Enable this flag to disable automatic removal of redundant
localized: trueproperties from sub-fields of localized parents.A field-level hook replaces the removed collection admin hook for customizing duplicated field values.
This type and related types were renamed to
BlocksFieldfor semantic accuracy.This type replaces
BlockFieldand related renamed types.This property has been removed; use the field-level
beforeDuplicatehook instead.Custom Views in the config use a
Componentproperty containing the component file path instead of accepting React Components directly.The Payload Config
customproperty is now server-only and will not appear in the client-side bundle.A custom cloud storage adapter's type must now provide a name property.
Custom Components in the Payload Config are now specified as file paths rather than direct imports.
Handlers no longer receive
resornextand must return a valid HTTPResponserather than using Express response methods.The type was renamed to
FormStatefor improved semantics.This type replaces the renamed
Fieldstype.This hook is now an array of functions rather than a single function, and its arguments have been expanded.
Passing email into the
initfunction is no longer supported; email functionality is configured through email adapters.Use this prefix for environment variables that need to be accessed on the client.
Environment variables with this prefix are no longer available on the client; use the
NEXT_PUBLICprefix to access them there.Existing Nodemailer email functionality has been abstracted into this email adapter package.
Adapter exports from this package, such as its S3 adapter subpath, have been removed; use the standalone package for the relevant adapter.
Form and form submission field overrides now accept a function receiving defaultFields instead of an array of field config.
Redirects collection field overrides now accept a function receiving defaultFields instead of an array of field config.
Custom features must be migrated to the new API.
The S3 storage adapter is provided through a standalone package.
Payload React components and hooks have moved from the
payloadpackage to@payloadcms/ui.Plugins now use named exports instead of default exports; most exports have a Plugin suffix.
Rate-limiting is now available only when using a custom server with Express or similar.
The package was removed; use Payload's
Translationcomponent instead of itsTranscomponent.The request object now extends the Web Request rather than the Express Request, so request access patterns may need updating.
Endpoint handlers no longer resolve request data automatically; call
addDataAndFileToRequestto populate it.Endpoint route parameters are now available on
req.routeParamsinstead ofreq.params.Payload sanitizes reserved field names from collection and global config, which can cause deployment errors; rename conflicting fields before migrating.
Set the Payload secret in the Payload Config instead of in the
payload.init()function.Payload's Translation component replaces
Transfromreact-i18nfor translated content with embedded elements.This property must now be an absolute path rather than a path resolved relative to the Payload Config.
This property has been removed; use
generateFileURLfunctions to produce URLs for an external provider.Custom Components are server-rendered by default; add this directive to files that need state or hooks.
The returned property names changed from
collapsedandwithinCollapsibletoisCollapsedandisWithinCollapsible.This hook now returns a
ClientConfigrather than aSanitizedConfig, omitting non-serializable properties.This hook provides the title and no longer returns
collectionorglobal; config identifiers such ascollectionSlugandglobalSlugare passed instead.This hook is consolidated into
useDocumentInfo; read the title from document info context.This hook no longer takes options; shorthand translation keys must use the full
group:keyform.Define Custom Root Views with this key instead of defining them on the
editkey.
Security 16
Payload: Client uploads could overwrite S3 objects
Payload Ecommerce has an order confirmation validation issue
Payload Form Builder has an RCE issue
Payload has a tenant authorization bypass in Multi-Tenant Plugin
Payload: Insufficient Access Control in Stripe REST Proxy
@payloadcms/plugin-multi-tenant has a cross-tenant create issue
@payloadcms/storage-vercel-blob has access control bypass of uploads in Vercel Storage adapter
Payload: Improper access control for MCP API keys
Payload: Prototype pollution in Payload Import Export plugin
Payload: Untrusted redirect URL parameter exploit
Payload: Field-level write access bypass in Payload on MongoDB
Payload: Pre-Authentication Account Takeover via Parameter Injection in Password Recovery
Payload has Insufficient Filename Validation in Client-Upload Signed-URL Endpoints
@payloadcms/next has Stored XSS in Admin Panel
Payload: SQL injection in SQLite/Postgres
@payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters
Deprecations 1
The bundler package is deprecated and can be uninstalled from the project.
New APIs and options 10
This utility mutates the request to add data and file information for an endpoint handler.
This utility mutates the request to add locale and fallback locale information for an endpoint handler.
Unique fields are automatically appended with “- Copy” through the new admin before-duplicate field hooks.
Use this key to define a Field description as a Custom Component.
Use this key to define a Collection description as a Custom Component.
Use this key to define a Global description as a Custom Component.
Use this property for custom values that must be available in both the server and client bundles.
Customize this file to add or import Admin Panel styles, including Tailwind styles.
A Resend email adapter is available through this package.
Payload 3.0 adds the Next.js package as part of the replatformed Admin Panel and HTTP layer.
Behavior and default changes 1
Email is no longer configured with ethereal.email by default.