I am using firebase hosting with firebase functions and firestore. Functions and firestore work as intended but hosting is not working as intended.
The issue that I am having is that my css and branding images are not showing up. They are not found by server. I have a functions directory and a public directory in the root directory of my project. If I move the public directory into the functions directory then serving locally works as intended and everything looks fine but then deploying throws an error saying that it cannot find the public directory.
It used to work just fine with the directory structure I have set up both locally and deployment.
After browsing through the Firebase Slack community, I found the solution.
There is a problem with firebase-tools v4.1.0.
run the following command in your console/cmd:
npm i -g firebase-tools
this will update your firebase-tools to the latest version and deploying your hosting after that should fix the problem.