Failed deploy n8n

Hello community. I deployed n8n from my github fork with success. However, it has been failing these 2 months. I tried deploying a new instance but it failed too. Any thoughts on how to solve this?

Build error log

n8n-editor-ui:build: 2930|  					// @ts-expect-error Deprecated file

Build warning log

n8n:build:  WARN  Unsupported engine: wanted: {"node":">=18.17 <= 22"} (current: {"node":"v23.4.0","pnpm":"9.14.2"})

For anyone with the same issue, managed to solve it by adding in environment variables: NODE_VERSION, 18.17

Per lilx’s answer, see https://render.com/docs/node-version