WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Collection features orderable and enableQueryPresets break admin panel on Cloudflare Workers #14837

@nqh-packages

Description

@nqh-packages

Describe the Bug

When deploying Payload CMS to Cloudflare Workers (using D1 database), the following collection config options cause the admin panel to fail:

  • orderable: true
  • enableQueryPresets: true

The admin panel renders a blank white page for affected collections. API endpoints continue to work normally (return 200 OK with valid data).

Reproduction Steps

  1. Create a Payload CMS project configured for Cloudflare Workers + D1
  2. Add a collection with either orderable: true or enableQueryPresets: true
  3. Deploy to Cloudflare Workers
  4. Navigate to the collection in the admin panel
  5. Observe blank white page instead of collection list

Expected Behavior

Collections with these options should render normally in the admin panel.

Workaround

Remove these options from collection configs when deploying to CF Workers:

export const MyCollection: CollectionConfig = {
  slug: 'my-collection',
  // orderable: true, // DISABLED: breaks CF Workers admin panel
  // enableQueryPresets: true, // DISABLED: breaks CF Workers admin panel
  // ... rest of config
}

Environment Info

Payload: 3.66.0
Next.js: 15.5.7
Runtime: Cloudflare Workers (OpenNext)
Database: Cloudflare D1 (SQLite)
Storage: Cloudflare R2

Which area(s) are affected?

  • Admin UI
  • Cloudflare Workers deployment

Additional Context

  • The API endpoints work fine - this is specifically an admin panel rendering issue
  • No errors appear in Cloudflare Workers observability logs
  • The issue appears to be client-side React rendering failure
  • Removing these options immediately fixes the issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions