firebase / firebase/firebase-tools

configurable health checks/startupProbe for webframework deployment (Next.js SSR Cloud Run function)

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

Description

> Please submit feature requests through our [support page](https://firebase.google.com/support/troubleshooter/report/features/).

The official Firebase Support sent me to this GitHub repository due to the early preview state of web frameworks integration.

I'm using Google Firebase with Next.js. For the deployment from my local machine to Firebase `firebase experiments:enable webframeworks` comes into the play.
I haven't found an option to configure the health checks for the Cloud Run Next.js SSR function created by the Firebase webframework deployment. The configuration in the `firebase.json` file could look like:
```
"hosting": {
"source": ".",
"frameworksBackend": {
"region": "europe-west1",
"minInstances": 1,
"maxInstances": 1,
"memory": "1GiB",
"startupProbe": {
"httpGet": {
"path": "/startupProbe",
"port": 8080
},
"timeoutSeconds": 240,
"periodSeconds": 240,
"failureThreshold": 2,
"initialDelaySeconds": 3
}
},
```

There is an open question about it on [Stack Overflow](https://stackoverflow.com/a/76474703/19547647) with a solution how to achieve this manually (with some downsides).

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.