well that's a node.js middleware if we want WordPress to be the backend...
May be I'm too late to reply. Next.js is a good solution. Use Wordpress Rest api with next.js.
I'm doing it here: craftcode.design/
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.