Skip to content

Instantly share code, notes, and snippets.

@coeneivan
Created November 10, 2023 07:28
Show Gist options
  • Select an option

  • Save coeneivan/16b8aae2f07fc42fc20dd37fe0678728 to your computer and use it in GitHub Desktop.

Select an option

Save coeneivan/16b8aae2f07fc42fc20dd37fe0678728 to your computer and use it in GitHub Desktop.

Revisions

  1. coeneivan created this gist Nov 10, 2023.
    5 changes: 5 additions & 0 deletions index.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    functions.runWith({
    minInstances: process.env.GCLOUD_PROJECT === "xxx-staging" ? 0 : 1,
    })
    .https.onCall(async (data, context) => {
    })