Skip to content

Instantly share code, notes, and snippets.

@toddwseattle
Created June 17, 2019 22:29
Show Gist options
  • Save toddwseattle/119fb962d072a1ca8e83e4d210405435 to your computer and use it in GitHub Desktop.
Save toddwseattle/119fb962d072a1ca8e83e4d210405435 to your computer and use it in GitHub Desktop.
Example firebase.json for use with nx.
{
"functions": {
"source": "/",
"predeploy": ["npm run build functions"]
},
"hosting": {
"public": "dist/apps/angapp",
"ignore": ["firebase.json", "**/node_modules/**"],
"rewrites": [{ "source": "**", "destination": "/index.html" }]
}
}
@toddwseattle
Copy link
Author

Sample firebase.json to use with nx; assumes you have an angular app in the location "angapp" and you generate a node app in "functions" for your firebase functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment