[Firebase Studio] Deploy Failing with "build config is missing required build step fetch". Corrupted Environment?

Hi community,

I’m facing a persistent issue when trying to deploy my Next.js application from Firebase Studio and would be very grateful for any help.

The Problem: Every single deployment attempt fails at the initial build stage with the error: build config is missing required build step fetch

This happens consistently, which leads me to believe the problem is not in my code, but in the deployment environment itself.

What I’ve Already Tried (Without Success):

  1. Code Isolation: I restored the code to older, previously-working versions that had successfully deployed, but the error persisted.

  2. Changing Deployment Strategy in firebase.json:

    • App Hosting: The initial configuration used frameworksBackend. This failed.

    • Hosting + Cloud Functions: I changed firebase.json to the classic architecture (Hosting with a rewrite to a Cloud Function). Surprisingly, the deployment process seemed to ignore this change, and the error logs continued to point to a failure in “App Hosting”.

  3. Complete IAM Permissions Check:

    • I checked the service accounts ...@cloudbuild.gserviceaccount.com and firebase-app-hosting-compute@....

    • I added the Viewer (roles/viewer) role, which was initially missing.

    • I confirmed that all necessary roles (Cloud Build Editor, Firebase Admin, Firebase App Hosting Compute Runner, and Viewer) are now assigned. The error continued.

  4. Dependency Resolution: I resolved all npm dependency conflicts in package.json. The project now installs dependencies correctly.

My Suspicion: Given that the fetch error indicates the build system can’t even access the source code, and that changes to firebase.json are being ignored, my strong suspicion is that the App Hosting build environment for this specific project (safehosp-5d67e) has become corrupted or “stuck” on an old, faulty configuration.

My Question: Has anyone experienced something similar? Is there a way to “force reset” the deployment environment of a project in Firebase Studio/App Hosting without having to create an entirely new Firebase project and migrating the database?

Thank you in advance for any insight on this matter.

check Deploy error in createBuildConfig: error in validateSignedURLBuildConfig: build config is missing required build step fetch - #20 by Starblack_Media for the Fix, tried it mine worked,

1 Like

Thanks, @Starblack_Media
Your answer solved the issue — I was able to deploy successfully. :raising_hands:

1 Like