Skip to content

fix(next): respect collection-level live preview config - #13036

Merged
jacobsfletch merged 6 commits into
mainfrom
fix/live-preview-collection-config
Jul 3, 2025
Merged

jacobsfletch merged 6 commits into
mainfrom
fix/live-preview-collection-config

Conversation

@jacobsfletch

@jacobsfletch jacobsfletch commented Jul 3, 2025 •

Copy link
Copy Markdown
Member

Fixes #13035.

We broke collection-level live preview configs in #12860.


AlessioGr
AlessioGr previously approved these changes Jul 3, 2025
AlessioGr
AlessioGr previously approved these changes Jul 3, 2025
@jacobsfletch
jacobsfletch enabled auto-merge (squash) July 3, 2025 21:13
@jacobsfletch
jacobsfletch merged commit f49eeb1 into main Jul 3, 2025
@jacobsfletch
jacobsfletch deleted the fix/live-preview-collection-config branch July 3, 2025 21:47
@jaens

jaens commented Jul 6, 2025

Copy link
Copy Markdown

I think this should probably go into a new hotfix/patch release since in 3.45.0, eg. the Payload website template live preview is completely broken.

@voczi

voczi commented Jul 6, 2025

Copy link
Copy Markdown

Also, in case things like this happen again, it would be nice if one could override the Payload package version used by create-payload-app. Or maybe it could use its own version (so that you can do something like npx [email protected])? Latter sounds better to me, but what do I know. I can post a PR for this; doesn't seem that complicated.

@Will-Bill

Copy link
Copy Markdown

Temporarily, the fix is to use the payload.config root config.

livePreview: { breakpoints: [ { label: 'Mobile', name: 'mobile', width: 375, height: 667, }, { label: 'Tablet', name: 'tablet', width: 768, height: 1024, }, { label: 'Desktop', name: 'desktop', width: 1440, height: 900, }, ], url: ({ data, req }) => { //here }, },

Is there a hotfix going out for this?

@jacobsfletch

Copy link
Copy Markdown
Member Author

There's a patch release going out today, thank you for hanging in there everyone. In the future another temporary fix you can make is to install one of our nightly canaries, in this case 3.46.0-canary.0.

@github-actions

github-actions Bot commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.46.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live-Preview no longer working with collection level configuration

5 participants