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?
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/**"
]
}