Remix App deploy: Runtime.HandlerNotFound - server.handler is undefined or not exported

I didn’t change anything, so it used the pnpm run build command in the netlify.toml.

However, as there is no pnpm-lock.yaml in the repository (see: Out of the box support for pnpm!), npm was used to install dependencies.

But the build script then runs npm run build:css && remix build so i’m really not sure why you’re using pnpm in the first place.