Skip to content

Can not deploy a static site to firebase hostings without enabling billings #87278

@whizsid

Description

@whizsid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error HandlingRelated to handling errors (e.g., error.tsx, global-error.tsx).

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions