I wrote an article about how I do it so you guys can copy it from my site:
It was hard for me to set up since I didn’t find any good tutorials.
So I wanted to share this with you guys who might need it.
Ps I know PHP is not cool anymore, but to do it once in a while is kinda nice; you learn to develop without all the abstractions frameworks like Next.js give.