I am new to using Firebase and after I developed a react project, I tried to deploy my application with firebase but it doesn't work. Firebase is already connected to my app for the database. This is what I did to deploy it:
firebase login
firebase init
(I tried all possibilities, I always chose HOSTING
and then as a public directory I tried with public / build / dist )
firebase deploy
but still, it gave me 2 links as following :
and when I click to the Hosting like, this is what it shows (not the app) :
Also, this is what my firebase.json file looks like (when I use build as a public directory)
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
maybe I do have to do some changes in this file ?
I also tried firebase serve to test it locally, and it shows me the same page (welcome page). But when I try my app with ng serve, it works.
Could you help me please ? Thank you !