Commit b2593d6
fix(ui): update node to v20 (#15717)
### What?
Updated the Docker Node.js image version from `18-alpine` to `20-alpine`
in the `docker-compose.yml` file.
### Why?
Next.js 15 and Payload CMS 3 require a more recent Node.js runtime.
Node.js 18 lacks the global `File` object, which leads to a
`ReferenceError: File is not defined` during Server-Side Rendering
(SSR). Upgrading to Node.js 20+ provides native support for the global
File API, resolving this runtime crash.
### How?
Modified the `image` property under the `payload` service in
`docker-compose.yml` to use `node:20-alpine`.
Co-authored-by: Paul Popus <paul@payloadcms.com>1 parent fdaa051 commit b2593d6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments