Skip to content

Live-Preview no longer working with collection level configuration #13035

Closed

Description

@MichaelAlt

Describe the Bug

Live-Preview will no longer work because the url will contain undefined instead of the actual confugration.

e.g. http://localhost:3000/undefined

Link to the code that reproduces this issue

https://github.com/MichaelAlt/payload-live-preview-bug

Reproduction Steps

Step 1:
Remove livePreview settings from buildConfig if existing

Step 2:
Add livePreview setting with url on a collection e.g.

admin: {
    livePreview: {
      url: 'https://payloadcms.com/'
    }
  },

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

> [email protected] payload
> cross-env NODE_OPTIONS=--no-deprecation payload info


Binaries:
  Node: 24.0.1
  npm: 11.3.0
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  payload: 3.45.0
  next: 15.3.2
  @payloadcms/email-nodemailer: 3.45.0
  @payloadcms/graphql: 3.45.0
  @payloadcms/next/utilities: 3.45.0
  @payloadcms/payload-cloud: 3.45.0
  @payloadcms/richtext-lexical: 3.45.0
  @payloadcms/translations: 3.45.0
  @payloadcms/ui/shared: 3.45.0
  react: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:29 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 11

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Jul 3, 2025
  2. removed
    validate-reproduction
    on Jul 3, 2025
  3. added a commit that references this issue on Jul 3, 2025
    f49eeb1
  4. removed
    status: needs-triage
    on Jul 3, 2025
  5. github-actions commented on Jul 7, 2025

    @github-actions
    Contributor

    🚀 This is included in version v3.46.0

  6. github-actions commented on Jul 15, 2025

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  7. locked as resolved and limited conversation to collaborators on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions