Root directory------
----admin_panel
----backend
----frontend
----node_modules
.env
.gitignore
package.json
The backend folder is for keeping all server codes, and into the root directory, I have all modules of the server. So, I have created two different React apps. They are running locally by using express API in different ports. Now I need to deploy the frontend and the admin_panel into the AWS with Nginx. I have written multiple conditions on the server.js file to render different react apps based on URL as requested. But it is not working. Can anyone help me, please!!
Thank in advance