Closed tonychew1986 closed 6 years ago
So sorry about this... I realised that it is just not loading in production on sub directory. It works on root. Would you know how I could resolve this issue?
I'm still not sure exactly what the bug is. Can you describe it more? Or link to a repository where I can reproduce?
Not sure if its something i'm doing wrong or is there some parameters I need to change.
Anyway really appreciate the help. :)
Hm, yeah does it work in development mode?
To me this sounds like something to do with React router not being at the root. I bet this is something they support but I'm not sure.
OK, i'm going to close this one out then. But feel free to reopen if you think this is an issue with this project.
Maybe review the React Router docs and see if they cover having your root route at a sub directory as you said.
Thanks ian.
Anyway I found the solution and I thought I should just share.
This is basically it, by using basename to define your subdirectory:
Could you link me to a repository where I can reproduce?