I was following tutorial on this page https://github.com/firebase/functions-samples/tree/master/google-sheet-sync. When I finaly reached step 11 where I need to deploy this project I got this error: "Must supply a public directory using "public" in each "hosting" config". After some googling I changed my firebase.jsom from this:
{
"functions": {
"source": "functions"
},
"hosting": {
"rewrites": [
{
"source": "/oauthcallback",
"function": "oauthcallback"
},
{
"source": "/authgoogleapi",
"function": "authgoogleapi"
},
{
"source": "/testsheetwrite",
"function": "testsheetwrite"
}
]
}
}
to this:
{
"functions": {
"source": "functions"
},
"hosting": {
"public": "functions",
"rewrites": [
{
"source": "/oauthcallback",
"function": "oauthcallback"
},
{
"source": "/authgoogleapi",
"function": "authgoogleapi"
},
{
"source": "/testsheetwrite",
"function": "testsheetwrite"
}
]
}
}
It helped and project was successfully deployed, but at step 12 I got error "SITE NOT FOUND". After some more googling I found this https://github.com/firebase/functions-samples/issues/446, but I don't understand last comment. What does full firebase deploy that includes hosting means?