Skip to content

Instantly share code, notes, and snippets.

@moaoa
Created November 2, 2024 14:20
Show Gist options
  • Select an option

  • Save moaoa/6d442ca04ec31b74b5c687109cc22fb9 to your computer and use it in GitHub Desktop.

Select an option

Save moaoa/6d442ca04ec31b74b5c687109cc22fb9 to your computer and use it in GitHub Desktop.
// select the main firebase project
firebase use <main-project-id>
// list projects
firebase projects:list
// firebase target:apply hosting <app-id> <site-url>
firebase target:apply hosting enjaz-web enjaz.bedayat.ly
// firebase deploy --only hosting:<app-id>
firebase deploy --only hosting:enjaz-web
//firebase.json
{
"hosting": {
"target": "dist",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment