PHP CAKE + NextJs

Can you please advise me on the best way to run a nextjs application in phpcake? It can be statically exposed, but I would like the NextJs application to run on a certain URL and receive routes… Example…

/articles and /articles/*.html would be a NextJs application, which would receive from the PHP Cake API… would there be an example please?

Thank you

its all up to you @shadowx.jb. how do you manage your packages i mean how do you run next.js in direct cakephp or on external port url? I am going to start youtube video where i will discuss all these thing on channel

I want to use it as a classic export from nextjs, no node.js server needed.