Skip to content

Instantly share code, notes, and snippets.

@vlaja
Created November 16, 2019 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlaja/3b179c1bd6ea3781fe461ebc2ee0d90d to your computer and use it in GitHub Desktop.
Save vlaja/3b179c1bd6ea3781fe461ebc2ee0d90d to your computer and use it in GitHub Desktop.
firebase.json file example for multiple targets under one project
{
"hosting": [
{
"target": "test",
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "staging",
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "production",
"public": "build",
"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