Nextjs deployments are not turning off old cloud run revisions (for SSR) #6484
Open
Description
opened on Oct 31, 2023
We use the nextjs framework integration for firebase. When we deploy our app, it creates a new cloud run revision for the SSR backend, but the old revision stays active. Rarely will the old one be 'deactivated'. Our snippet below gives the historical revisions for cloud run instances and you can see that one of them was deactivated successfully.
This matters because those old revisions are costing us a lot of money (which we recently discovered through billing and deleting many of the old revisions that were still active).
firebase-tools:12.7.0
[REQUIRED] Expected behavior
When we deploy a nextjs app, the old ssr cloud run revision should be deactivated when the new one is active.
[REQUIRED] Actual behavior
The old revisions are staying active.
Activity