Welcome! Log In Create A New Profile

Advanced

Routes for sub-apps

Posted by blackbird8192 
Routes for sub-apps
May 12, 2023 11:27AM
Hi yall!
Maybe I'm dumb but i can't seem to figure this out. I've got 3 react apps - shell, admin and store - and i'm needing to arrange admin and store as sub-routes of shell like so:

/ (shell)
└ /admin (admin)
└ /store (store)

i can get shell to work fine, but for admin and store their index.html is referencing just "main.js" for their script files. This ends up requesting /main.js (the shell's main.js) rather than /admin/main.js. How can i setup the subroutes to correctly return the files relative to the requesting file rather than the root?

i attached my current nginx.conf

Thanks in advance!
Attachments:
open | download - nginx.conf (724 bytes)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready