payloadcms / payloadcms/payload
Replace undici with built-in fetch
Open
@AlessioGr is already working on this.
Since Nov 10, 2025.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
Describe the Bug
I don't think that undici needs to be depended on. I believe that fetch should work:
https://nodejs.org/api/globals.html#custom-dispatcher
Link to the code that reproduces this issue
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
`main`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.