unstale

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

@unstale/cli 0.3.1 on npm

@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.

    3.0.0upgrade guide

  • Collapsible Field labels now use a Custom Component file path rather than a plain string or record.

    3.0.0upgrade guide

  • Array Field row labels now use a Custom Component file path rather than a plain string or record.

    3.0.0upgrade guide

  • View Tab href and isActive functions no longer receive the React Router match or location arguments.

    3.0.0upgrade guide

  • This Custom Component key replaces admin.components.views[key].Tab.pillLabel.

    3.0.0upgrade guide

  • This Payload Config property has been removed; customize (payload)/custom.css or import a stylesheet through a custom provider.

    3.0.0upgrade guide

  • For Collections, Globals, and Fields, this property no longer accepts a React Component; define the component in the corresponding admin.components location.

    3.0.0upgrade guide

  • This property is replaced by admin.icons, whose entries use path and sizes.

    3.0.0upgrade guide

  • Configure favicon icons with an array of entries containing path and sizes.

    3.0.0upgrade guide

  • This property is consolidated into admin.routes.inactivity.

    3.0.0upgrade guide

  • This property has been removed from the Payload Config.

    3.0.0upgrade guide

  • Its function arguments no longer include documentInfo; they now include collectionConfig and globalConfig.

    3.0.0upgrade guide

  • This property is consolidated into admin.routes.logout.

    3.0.0upgrade guide

  • This property is replaced by admin.meta.openGraph.images.

    3.0.0upgrade guide

  • Configure Admin Panel Open Graph images through this property, replacing admin.meta.ogImage.

    3.0.0upgrade guide

  • This property consolidates the logout and inactivity route configuration under logout and inactivity keys.

    3.0.0upgrade guide

  • Default view keys are now camelcase, such as account, edit, and default.

    3.0.0upgrade guide

  • Enable this flag to disable automatic removal of redundant localized: true properties from sub-fields of localized parents.

    3.0.0upgrade guide

  • A field-level hook replaces the removed collection admin hook for customizing duplicated field values.

    3.0.0upgrade guide

  • This type and related types were renamed to BlocksField for semantic accuracy.

    3.0.0upgrade guide

  • This type replaces BlockField and related renamed types.

    3.0.0upgrade guide

  • This property has been removed; use the field-level beforeDuplicate hook instead.

    3.0.0upgrade guide

  • Custom Views in the config use a Component property containing the component file path instead of accepting React Components directly.

    3.0.0upgrade guide

  • The Payload Config custom property is now server-only and will not appear in the client-side bundle.

    3.0.0upgrade guide

  • A custom cloud storage adapter's type must now provide a name property.

    3.0.0upgrade guide

  • Custom Components in the Payload Config are now specified as file paths rather than direct imports.

    3.0.0upgrade guide

  • Handlers no longer receive res or next and must return a valid HTTP Response rather than using Express response methods.

    3.0.0upgrade guide

  • The type was renamed to FormState for improved semantics.

    3.0.0upgrade guide

  • This type replaces the renamed Fields type.

    3.0.0upgrade guide

  • This hook is now an array of functions rather than a single function, and its arguments have been expanded.

    3.0.0upgrade guide

  • Passing email into the init function is no longer supported; email functionality is configured through email adapters.

    3.0.0upgrade guide

  • Use this prefix for environment variables that need to be accessed on the client.

    3.0.0upgrade guide

  • Environment variables with this prefix are no longer available on the client; use the NEXT_PUBLIC prefix to access them there.

    3.0.0upgrade guide

  • Existing Nodemailer email functionality has been abstracted into this email adapter package.

    3.0.0upgrade guide

  • Adapter exports from this package, such as its S3 adapter subpath, have been removed; use the standalone package for the relevant adapter.

    3.0.0upgrade guide

  • Form and form submission field overrides now accept a function receiving defaultFields instead of an array of field config.

    3.0.0upgrade guide

  • Redirects collection field overrides now accept a function receiving defaultFields instead of an array of field config.

    3.0.0upgrade guide

  • Custom features must be migrated to the new API.

    3.0.0upgrade guide

  • The S3 storage adapter is provided through a standalone package.

    3.0.0upgrade guide

  • Payload React components and hooks have moved from the payload package to @payloadcms/ui.

    3.0.0upgrade guide

  • Plugins now use named exports instead of default exports; most exports have a Plugin suffix.

    3.0.0upgrade guide

  • Rate-limiting is now available only when using a custom server with Express or similar.

    3.0.0upgrade guide

  • The package was removed; use Payload's Translation component instead of its Trans component.

    3.0.0upgrade guide

  • The request object now extends the Web Request rather than the Express Request, so request access patterns may need updating.

    3.0.0upgrade guide

  • Endpoint handlers no longer resolve request data automatically; call addDataAndFileToRequest to populate it.

    3.0.0upgrade guide

  • Endpoint route parameters are now available on req.routeParams instead of req.params.

    3.0.0upgrade guide

  • Payload sanitizes reserved field names from collection and global config, which can cause deployment errors; rename conflicting fields before migrating.

    3.0.0upgrade guide

  • Set the Payload secret in the Payload Config instead of in the payload.init() function.

    3.0.0upgrade guide

  • Payload's Translation component replaces Trans from react-i18n for translated content with embedded elements.

    3.0.0upgrade guide

  • This property must now be an absolute path rather than a path resolved relative to the Payload Config.

    3.0.0upgrade guide

  • This property has been removed; use generateFileURL functions to produce URLs for an external provider.

    3.0.0upgrade guide

  • Custom Components are server-rendered by default; add this directive to files that need state or hooks.

    3.0.0upgrade guide

  • The returned property names changed from collapsed and withinCollapsible to isCollapsed and isWithinCollapsible.

    3.0.0upgrade guide

  • This hook now returns a ClientConfig rather than a SanitizedConfig, omitting non-serializable properties.

    3.0.0upgrade guide

  • This hook provides the title and no longer returns collection or global; config identifiers such as collectionSlug and globalSlug are passed instead.

    3.0.0upgrade guide

  • This hook is consolidated into useDocumentInfo; read the title from document info context.

    3.0.0upgrade guide

  • This hook no longer takes options; shorthand translation keys must use the full group:key form.

    3.0.0upgrade guide

  • Define Custom Root Views with this key instead of defining them on the edit key.

    3.0.0upgrade guide

Security 16

  • Payload: Client uploads could overwrite S3 objects

    3.90.0security advisory

  • Payload Ecommerce has an order confirmation validation issue

    3.90.0security advisory

  • Payload Form Builder has an RCE issue

    3.90.0security advisory

  • Payload has a tenant authorization bypass in Multi-Tenant Plugin

    3.90.0security advisory

  • Payload: Insufficient Access Control in Stripe REST Proxy

    3.90.0security advisory

  • @payloadcms/plugin-multi-tenant has a cross-tenant create issue

    3.90.0security advisory

  • @payloadcms/storage-vercel-blob has access control bypass of uploads in Vercel Storage adapter

    3.90.0security advisory

  • Payload: Improper access control for MCP API keys

    3.88.0security advisory

  • Payload: Prototype pollution in Payload Import Export plugin

    3.88.0security advisory

  • Payload: Untrusted redirect URL parameter exploit

    3.88.0security advisory

  • Payload: Field-level write access bypass in Payload on MongoDB

    3.87.0security advisory

  • Payload: Pre-Authentication Account Takeover via Parameter Injection in Password Recovery

    3.79.1security advisory

  • Payload has Insufficient Filename Validation in Client-Upload Signed-URL Endpoints

    3.78.0security advisory

  • @payloadcms/next has Stored XSS in Admin Panel

    3.78.0security advisory

  • Payload: SQL injection in SQLite/Postgres

    3.73.0security advisory

  • @payloadcms/drizzle has SQL Injection in JSON/RichText Queries on PostgreSQL/SQLite Adapters

    3.73.0security advisory

Deprecations 1

  • The bundler package is deprecated and can be uninstalled from the project.

    3.0.0upgrade guide

New APIs and options 10

  • This utility mutates the request to add data and file information for an endpoint handler.

    3.0.0upgrade guide

  • This utility mutates the request to add locale and fallback locale information for an endpoint handler.

    3.0.0upgrade guide

  • Unique fields are automatically appended with “- Copy” through the new admin before-duplicate field hooks.

    3.0.0upgrade guide

  • Use this key to define a Field description as a Custom Component.

    3.0.0upgrade guide

  • Use this key to define a Collection description as a Custom Component.

    3.0.0upgrade guide

  • Use this key to define a Global description as a Custom Component.

    3.0.0upgrade guide

  • Use this property for custom values that must be available in both the server and client bundles.

    3.0.0upgrade guide

  • Customize this file to add or import Admin Panel styles, including Tailwind styles.

    3.0.0upgrade guide

  • A Resend email adapter is available through this package.

    3.0.0upgrade guide

  • Payload 3.0 adds the Next.js package as part of the replatformed Admin Panel and HTTP layer.

    3.0.0upgrade guide

Behavior and default changes 1

  • Email is no longer configured with ethereal.email by default.

    3.0.0upgrade guide