Skip to content

Instantly share code, notes, and snippets.

@coeneivan
Created November 10, 2023 07:28
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 coeneivan/16b8aae2f07fc42fc20dd37fe0678728 to your computer and use it in GitHub Desktop.
Save coeneivan/16b8aae2f07fc42fc20dd37fe0678728 to your computer and use it in GitHub Desktop.
Variable minInstances firebase
functions.runWith({
minInstances: process.env.GCLOUD_PROJECT === "xxx-staging" ? 0 : 1,
})
.https.onCall(async (data, context) => {
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment