1👍
✅
Update your firebase.json
to the following (edit out my comments):
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint"
]
},
"hosting": {
"public": "dist", // <-- CHANGED: hosting deploy directory to Vue's build directory
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"predeploy": [
"npm run build" // <-- CHANGED: Before deploying, automatically build Vue project
]
},
"storage": {
"rules": "storage.rules"
}
}
Source:stackexchange.com