nextjs - 💡(How to fix) Fix Can not deploy a static site to firebase hostings without enabling billings [9 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#87278Fetched 2026-04-08 02:07:24
View on GitHub
Comments
9
Participants
3
Timeline
26
Reactions
0
Author
Assignees
Timeline (top)
commented ×9subscribed ×5mentioned ×4labeled ×2

Error Message

Generating static pages using 7 workers (1/6)

Generating static pages using 7 workers (2/6)

Generating static pages using 7 workers (4/6)

✓ Generating static pages using 7 workers (6/6) in 404.4ms

Finalizing page optimization ...

Route (app) ┌ ○ / └ ○ /_not-found

Route (pages) ─ ○ /Home

○ (Static) prerendered as static content

Building a Cloud Function to run this application. This is needed due to: • non-static component /_global-error/page

npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: '[email protected]', npm warn EBADENGINE required: { node: '^16.0.0 || ^18.0.0' }, npm warn EBADENGINE current: { node: 'v20.16.0', npm: '10.8.1' } npm warn EBADENGINE } npm warn deprecated @types/[email protected]: This is a stub types definition. glob provides its own type definitions, so you do not need this installed. npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported npm warn deprecated [email protected]: Package is no longer maintained

added 374 packages in 14s

51 packages are looking for funding run npm fund for details

=== Deploying to '..'...

i deploying functions, hosting i functions: preparing codebase firebase-frameworks-uniqorn-live for deployment i functions: ensuring required API cloudfunctions.googleapis.com is enabled... i functions: ensuring required API cloudbuild.googleapis.com is enabled... i artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled... ⚠ artifactregistry: missing required API artifactregistry.googleapis.com. Enabling now... ⚠ functions: missing required API cloudbuild.googleapis.com. Enabling now... ✔ functions: required API cloudfunctions.googleapis.com is enabled

Error: Your project uniqorn-live must be on the Blaze (pay-as-you-go) plan to complete this command. Required API artifactregistry.googleapis.com can't be enabled until the upgrade is complete. To upgrade, visit the following URL:

https://.../usage/details

Code Example

Generating static pages using 7 workers (1/6) 

   Generating static pages using 7 workers (2/6) 

   Generating static pages using 7 workers (4/6) 

Generating static pages using 7 workers (6/6) in 404.4ms

   Finalizing page optimization ...



Route (app)
┌ ○ /
└ ○ /_not-found

Route (pages)
─ ○ /Home


  (Static)  prerendered as static content


Building a Cloud Function to run this application. This is needed due to:
 • non-static component /_global-error/page

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '[email protected]',
npm warn EBADENGINE   required: { node: '^16.0.0 || ^18.0.0' },
npm warn EBADENGINE   current: { node: 'v20.16.0', npm: '10.8.1' }
npm warn EBADENGINE }
npm warn deprecated @types/glob@9.0.0: This is a stub types definition. glob provides its own type definitions, so you do not need this installed.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated google-p12-pem@4.0.1: Package is no longer maintained

added 374 packages in 14s

51 packages are looking for funding
  run `npm fund` for details

=== Deploying to '..'...

i  deploying functions, hosting
i  functions: preparing codebase firebase-frameworks-uniqorn-live for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
⚠  artifactregistry: missing required API artifactregistry.googleapis.com. Enabling now...
⚠  functions: missing required API cloudbuild.googleapis.com. Enabling now...
✔  functions: required API cloudfunctions.googleapis.com is enabled

Error: Your project uniqorn-live must be on the Blaze (pay-as-you-go) plan to complete this command. Required API artifactregistry.googleapis.com can't be enabled until the upgrade is complete. To upgrade, visit the following URL:

https://.../usage/details

---

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103
  Available memory (MB): 8192
  Available CPU cores: 8
Binaries:
  Node: 20.16.0
  npm: 10.8.1
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 16.0.10 // Latest available version is detected (16.0.10).
  eslint-config-next: N/A
  react: 19.2.1
  react-dom: 19.2.1
  typescript: 5.9.3
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/jpedroschmitz/typescript-nextjs-starter

To Reproduce

Create a starter next js project that using next 16. Create a firebase project. Init a firebase project at the project. Run firebase deploy.

Current vs. Expected behavior


   Generating static pages using 7 workers (1/6) 

   Generating static pages using 7 workers (2/6) 

   Generating static pages using 7 workers (4/6) 

 ✓ Generating static pages using 7 workers (6/6) in 404.4ms

   Finalizing page optimization ...



Route (app)
┌ ○ /
└ ○ /_not-found

Route (pages)
─ ○ /Home


○  (Static)  prerendered as static content


Building a Cloud Function to run this application. This is needed due to:
 • non-static component /_global-error/page

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '[email protected]',
npm warn EBADENGINE   required: { node: '^16.0.0 || ^18.0.0' },
npm warn EBADENGINE   current: { node: 'v20.16.0', npm: '10.8.1' }
npm warn EBADENGINE }
npm warn deprecated @types/[email protected]: This is a stub types definition. glob provides its own type definitions, so you do not need this installed.
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Package is no longer maintained

added 374 packages in 14s

51 packages are looking for funding
  run `npm fund` for details

=== Deploying to '..'...

i  deploying functions, hosting
i  functions: preparing codebase firebase-frameworks-uniqorn-live for deployment
i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
i  artifactregistry: ensuring required API artifactregistry.googleapis.com is enabled...
⚠  artifactregistry: missing required API artifactregistry.googleapis.com. Enabling now...
⚠  functions: missing required API cloudbuild.googleapis.com. Enabling now...
✔  functions: required API cloudfunctions.googleapis.com is enabled

Error: Your project uniqorn-live must be on the Blaze (pay-as-you-go) plan to complete this command. Required API artifactregistry.googleapis.com can't be enabled until the upgrade is complete. To upgrade, visit the following URL:

https://.../usage/details

But with the version 15, we could deploy sites without Cloud Functions.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103
  Available memory (MB): 8192
  Available CPU cores: 8
Binaries:
  Node: 20.16.0
  npm: 10.8.1
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 16.0.10 // Latest available version is detected (16.0.10).
  eslint-config-next: N/A
  react: 19.2.1
  react-dom: 19.2.1
  typescript: 5.9.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Error Handling

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

I also tried to fix it by defining a app/global-error.tsx file. But did not worked. Please provide us a way to configure the global error handling behavior.

extent analysis

TL;DR

The most likely fix is to upgrade the Firebase project to the Blaze (pay-as-you-go) plan to enable the required API artifactregistry.googleapis.com.

Guidance

  • The error message indicates that the project must be on the Blaze plan to complete the deployment command, suggesting a limitation in the current plan.
  • The presence of a non-static component /global-error/page requires a Cloud Function, which is not supported in the current plan.
  • Defining an app/global-error.tsx file did not resolve the issue, indicating that the problem is not with the error handling configuration.
  • To verify the fix, check if the deployment is successful after upgrading to the Blaze plan.

Example

No code snippet is provided as the issue is related to the Firebase project configuration rather than code.

Notes

The issue is specific to the Firebase project configuration and the Next.js version 16. The solution may not apply to other versions or configurations.

Recommendation

Apply workaround: Upgrade to the Blaze plan to enable the required API, as the current plan does not support Cloud Functions required for non-static components.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix Can not deploy a static site to firebase hostings without enabling billings [9 comments, 3 participants]