502 error - @prisma/client - when deploying via Netlify

After following the steps in the tutorial:

@prisma/client did not initialize yet. Please run “prisma2 generate” and try to import it again.↵In case this error is unexpected for you, please report it in Prisma Client removed on adding a new package: Error: @prisma/client did not initialize yet · Issue #390 · prisma/prisma-client-js · GitHub

Try running yarn rw db generate

Normally you shouldn’t have to run this command manually as it should be happening for you automatically if yarn rw dev is running and serving your site.