Skip to content

Bug: Loop redirect admin when serverURL - Payload CMS 3.68.4 #14918

Closed as duplicate

Description

@jtimi-mtbk

Describe the Bug

Hi team, i still got redirect loop when set serverURL: 'http://localhost:3000', in payload.config.ts.
I want my api, media has absolute URL.

Link to the code that reproduces this issue

https://github.com/jtimi-mtbk/payload-cms-server-url-error/blob/main/src/payload.config.ts

Reproduction Steps

I has repo with only add serverURL: 'http://localhost:3000', in payload.config.ts from
npx create-payload-app@latest -t blank
Check at repo:
https://github.com/jtimi-mtbk/payload-cms-server-url-error/blob/main/src/payload.config.ts

Step by step
Create blank project from

npx create-payload-app@latest -t blank

Image:
Image

Image

Please help me check it, i prepare launch production but it critical prevent me launch latest version, thanks team.

Which area(s) are affected?

area: core

Environment Info

Binaries:
  Node: 24.11.1
  npm: 11.6.2
  Yarn: 1.22.22
  pnpm: 10.25.0
Relevant Packages:
  payload: 3.68.4
  next: 15.4.10
  @payloadcms/db-sqlite: 3.68.4
  @payloadcms/drizzle: 3.68.4
  @payloadcms/graphql: 3.68.4
  @payloadcms/next/utilities: 3.68.4
  @payloadcms/richtext-lexical: 3.68.4
  @payloadcms/translations: 3.68.4
  @payloadcms/ui/shared: 3.68.4
  react: 19.2.1
  react-dom: 19.2.1
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041
  Available memory (MB): 36864
  Available CPU cores: 14

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Dec 15, 2025
  2. added
    area: core
    and removed
    validate-reproduction
    on Dec 15, 2025
  3. removed
    status: needs-triage
    on Dec 15, 2025
  4. github-actions commented on Dec 22, 2025

    @github-actions
    Contributor

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

  5. locked as resolved and limited conversation to collaborators on Dec 22, 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

    area: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions