I have a main/hero website built with html jquery and dashboard with react. Currently dashboard serves from different subdomain (dashboard.example.com)
and website from (example.com)
. I would like them to be in same folder such that website would still be (example.com)
but dashboard would be (example.com/dashboard)
. Can someone help me how I can achieve this?
CodePudding user response:
maybe you can try this trick:
- create new child folder called dashboard inside your public folder, and move index.html with build file react dashboard, inside the dashboard public folder.
- and then load react js build bundle from the move index.html inside dashboard folder.
they will be called into the new folder dashboard in example.com/dashboard