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):
-
Code Isolation: I restored the code to older, previously-working versions that had successfully deployed, but the error persisted.
-
Changing Deployment Strategy in
firebase.json:-
App Hosting: The initial configuration used
frameworksBackend. This failed. -
Hosting + Cloud Functions: I changed
firebase.jsonto 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”.
-
-
Complete IAM Permissions Check:
-
I checked the service accounts
...@cloudbuild.gserviceaccount.comandfirebase-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, andViewer) are now assigned. The error continued.
-
-
Dependency Resolution: I resolved all
npmdependency conflicts inpackage.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.
