Title: `ng deploy` generates a Cloud Function that targets the decommissioned Node 14 runtime and crashes on firebase-functions 6 · Issue #3742 · angular/angularfire · GitHub
Open Graph Title: `ng deploy` generates a Cloud Function that targets the decommissioned Node 14 runtime and crashes on firebase-functions 6 · Issue #3742 · angular/angularfire
X Title: `ng deploy` generates a Cloud Function that targets the decommissioned Node 14 runtime and crashes on firebase-functions 6 · Issue #3742 · angular/angularfire
Description: Version info Angular: any supported by current AngularFire AngularFire: main today, and every release since the firebase-functions 6 upgrade How to reproduce these conditions ng deploy with SSR generates the Cloud Function it deploys fro...
Open Graph Description: Version info Angular: any supported by current AngularFire AngularFire: main today, and every release since the firebase-functions 6 upgrade How to reproduce these conditions ng deploy with SSR gen...
X Description: Version info Angular: any supported by current AngularFire AngularFire: main today, and every release since the firebase-functions 6 upgrade How to reproduce these conditions ng deploy with SSR gen...
Opengraph URL: https://github.com/angular/angularfire/issues/3742
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng deploy` generates a Cloud Function that targets the decommissioned Node 14 runtime and crashes on firebase-functions 6","articleBody":"### Version info\n\n**Angular:** any supported by current AngularFire\n\n**AngularFire:** `main` today, and every release since the firebase-functions 6 upgrade\n\n### How to reproduce these conditions\n\n`ng deploy` with SSR generates the Cloud Function it deploys from the templates in `src/schematics/deploy/functions-templates.ts`. Three defects in what it generates:\n\n1. **The default runtime is Node 14.** `DEFAULT_NODE_VERSION = 14`, and nothing sets `functionsNodeVersion` by default, so the generated manifest carries `\"engines\": { \"node\": \"14\" }`. Cloud Functions decommissioned the `nodejs14` runtime in early 2025 and deployment with it is disabled. The same constant also picks the Cloud Run base image (`FROM node:14-slim`), a tag last rebuilt in 2023.\n\n2. **The gen 1 function crashes at cold start on firebase-functions 6.** The default template emits `const functions = require('firebase-functions')` and calls `functions.region(...)`. On firebase-functions 6, which this repo depends on (`^6.1.0`), the v1 API lives on the `firebase-functions/v1` subpath and `region` is not on the package root. Running the generated file verbatim:\n\n ```\n TypeError: functions.region is not a function\n ```\n\n This is the default path, since `CF3v2` has no default and nothing sets it.\n\n3. **The docs example is out of date.** `docs/deploy/getting-started.md` shows `\"functionsNodeVersion\": 12`, another decommissioned runtime.\n\n### Expected behavior\n\nThe generated function declares a runtime Cloud Functions accepts and loads against the firebase-functions major this repo depends on.\n\n### Actual behavior\n\nThe deploy is refused for the dead runtime, and a function that does reach deployment dies on its first request.\n\nRelated: #3676.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-08-11T19:39:51Z","url":"https://github.com/angular/angularfire/issues/3742"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c301b6de-7d51-b47d-22b0-13b39b79b66f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9B8:14E440:A801A6:D4E633:6B036964 |
| html-safe-nonce | 7408162cb6ef3582c36472ad55290dd43d99ade038ebdd94985a05ced32ebdd5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUI4OjE0RTQ0MDpBODAxQTY6RDRFNjMzOjZCMDM2OTY0IiwidmlzaXRvcl9pZCI6IjkyNjA3OTA4NDkyNzM0NzA0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab5522edf87bf117b1a77d8672f9d165b74207405b24dcebc96b575564c9d5d8 |
| hovercard-subject-tag | issue:5123920166 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3742/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b1fcde07ec7c9e99c17615105a48e312f7fc1f0d9037ea11b97c0405283c72b/angular/angularfire/issues/3742 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b1fcde07ec7c9e99c17615105a48e312f7fc1f0d9037ea11b97c0405283c72b/angular/angularfire/issues/3742 |
| og:image:alt | Version info Angular: any supported by current AngularFire AngularFire: main today, and every release since the firebase-functions 6 upgrade How to reproduce these conditions ng deploy with SSR gen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | armando-navarro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width