I have installed Firebase hosting project into my machine by referring following docs:
https://firebase.google.com/docs/hosting/
Now, I want to change the location of my project directory. Wha should I do for this?
Till now I have tried by relogin and re-initialize the project but it does not give option to specify directory again.
Go to the file called firebase.json located in the root of the project and change the field called public in hosting to the directory you want.
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "public", <------ This points to directory
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
EDIT
learn more here