I have a gatsby project and when I put it in the root of the domain it works just fine (e.g. abc.com). But if I place it under a directory (e.g. abc.com/myproj) then the webpack ect throwing 404 error as they are still referring to the root of the project.
Could this be fixed and make them look for all js files inside the myproj directory instead of looking at the root? 
is there any configurations I need to change it to work inside a directory under the root? Thanks in advance.