Repository navigation
Description
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
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- Chose SQLite then go to
payload.config.tsand set `serverURL: 'http://localhost:3000' - After than run dev go to
http://localhost:3000then click admin to redirect ``http://localhost:3000/admin` - 🐛 When go to admin route it trigger loop redirect to
http://localhost:3000/admin/login?redirect=http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Flogin
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
github-actions commentedon Dec 22, 2025
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.