Hi everyone, I am trying to deploy a fullstack MERN app on koyeb with the hobby plan. The problem is that I can only expose 1 port. Is this a limitation of the plan ( doesn’t seem to be as I am able to add and save the second port).
As soon as I start the deployment, if I look at the settings, it says that I only have one port exposed.
Hi, no I didn’t. I realised though that I do not need to expose more than one port. I was thinking I needed to expose both the front end and the back end, but realise that what I have to do is only expose the backend.
The issue is that the frontend is not building and I have no idea why not.
This is my first fullstack project and I’m just quite confused about the set up.
You’re almost there. What’s missing is that you need to serve your frontend with a fallback request handler from your express app. Try adding this after all your backend routes: