First, the problem is too vague for StackOverflow standards as I probably don't have specific code to show. This is a generic question that I hope someone can help me find out what the problem could be.
I have seen that a base-href is needed in order to tell the project its route in the server. In example, if I want to deploy a project called "project", the base-href should be /project/ and I would access it from 127.0.0.1:port/project/.
So, I have this project I have been working on since months, and I do what I just described above, but the project is not running. I just see the favicon. In order to discard problems, I started a brand new project and followed the same steps to build it to production, and this one, the brand new runs flawlessly. So it means is not a build problem or server problem, but probably my project must have something that is stopping it from running properly.
I wonder if any of you have encounter a similar case and could guide me to find where the problem could be. It is really frustrating that I can't run production after months of work. Any help will be appreciated.
in angular.json I have:
"baseHref": "/project/",
"deployUrl": "/project/",
In xammp, I put the folder created in dist in the htdocs and try to access it from 127.0.0.1:80/project/ (port 80 is open to the server ip). I deploy the project by using this command:
ng build --base-href "/project/" --prod
If you need some extra code to check please let me know.