Node expresss backend url?

where can i find url of my backend project on idx? let’s say i need to fetch the backend from my frontend. what should i fetch to?

Hi @magabee. IDX is a development environment, and doesn’t support being treated as a live backend the same way a VPS is.

You can test your backend from IDX using localhost loopback and the port of your server, which can be found in the IDX panel here:

Once you’re ready to go live, you can deploy your backend to Cloud Run or Firebase

2 Likes

Thanks. I’ve found mapped url in this section but can’t making request due to cors error even implemented cors in express app. Just followed IDX full stack documentation but can’t figure out why it isn’t working.

1 Like

You can’t use an API separate from your frontend app with IDX, there’s various posts in this forum about this issue. They say they are working on it, but until then you’ll have to use something else.

1 Like