Thanks! This pointed me in the right direction.
I found that by using the built-in $GCLOUD_PROJECT env var, you can add this as a postdeploy hook in firebase.json to ensure it runs with every deploy, like so:
$GCLOUD_PROJECT
firebase.json
{ "functions": { "postdeploy": [ "gcloud pubsub subscriptions update projects/$GCLOUD_PROJECT/subscriptions/gcf-myFunction-europe-west1-my-topic --min-retry-delay=10s --max-retry-delay=10m --message-retention-duration=2h" ] } }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! This pointed me in the right direction.
I found that by using the built-in
$GCLOUD_PROJECTenv var, you can add this as a postdeploy hook infirebase.jsonto ensure it runs with every deploy, like so: