-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
Bugarea: uiRelated to the admin panel.Related to the admin panel.db: sqlite@payloadcms/db-sqlite@payloadcms/db-sqliteplugin: db-d1-sqlite
Description
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: trueenableQueryPresets: 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
- Create a Payload CMS project configured for Cloudflare Workers + D1
- Add a collection with either
orderable: trueorenableQueryPresets: true - Deploy to Cloudflare Workers
- Navigate to the collection in the admin panel
- 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
Labels
Bugarea: uiRelated to the admin panel.Related to the admin panel.db: sqlite@payloadcms/db-sqlite@payloadcms/db-sqliteplugin: db-d1-sqlite