Everytime a hit the
firebase deploy --only hosting
in my nextjs project it also deploys the functions (there is a folder in my project called functions where I coded all the functions)
when I run
firebase deploy --only functions
it works perfectly, only the functions are deployed
My firebase json:
{
"functions": {
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log"
],
"source": "functions"
},
"hosting": {
"source": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}