I am receiving the error 'Must supply a public directory using "public" in each "hosting" config.' when deploying my firebase app. How do I fix this?
I was using "public: ""
to deploy the root directory. When it forced me to use a value I instead passed
"public": "."
which worked.
Got the same error and fixed it with adding "public" to firebase.json
in the empty "public" attribute.
Your firebase.json
should be like this.
"hosting": {
"public": "public", // <- Added
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With