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 https://github.com/prisma/prisma-client-js/issues/390

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.