firebase / firebase/firebase-tools

Nextjs deployments are not turning off old cloud run revisions (for SSR)

Open
#6,484 7 comments 5 reactions 0 assignees View on GitHub
integration: web frameworks type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

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.

image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.