Strapi and Nextjs on the one web service

I’m trying to deploy 2 application (next.js and strapi) to one web service on Render.

How can I use next.js for frontend and strapi for backend in one web service?

like:
domain.com
api.domain.com

Can someone help me? I couldn’t find any document about that.

This topic has been created from a Discord post (1288366449852678206) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

You can always bundle them in a single docker image including something like caddy to do the routing but it’s a bit hacky and goes against the philisophy of one process per container.

I’ve never really used Render. Just tried them. But can’t you define two services?

thank you very much

yes, i can but just wanted to use one webservice for both