Skip to content

Commit b2593d6

Browse files
ab192130paulpopus
andauthored
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

File tree

templates/blank/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
payload:
5-
image: node:18-alpine
5+
image: node:20-alpine
66
ports:
77
- '3000:3000'
88
volumes:

0 commit comments

Comments
 (0)