Firebase team replied me
"Hi Abc,
Thanks for reaching out! My name is Firebase Support Agent and I’ll do my best to help you.
I understand how frustrating it is to have your workflow interrupted by a redirect to the Google Cloud Console, especially since Firebase Studio is designed to manage these backend services for you. I’ve looked into the behavior you described regarding the cloudworkstations.dev redirect.
Our internal teams have seen similar reports where the preview environment fails to authenticate correctly, often due to how the browser handles sessions across multiple Google accounts or restricted cookie settings.
To give you some context, Firebase Studio uses Google Cloud Workstations as its backend engine. When you click “Preview,” the browser attempts to access a unique URL on the cloudworkstations.dev domain. If the browser sends the wrong authentication token (which can happen with multiple signed-in accounts) or if the backend container has reached an inconsistent state, GCP may redirect you to the API enablement page as a default fallback, even though you shouldn’t need to enable it manually.
To resolve this, please try the following steps in order:
Account Isolation: Cloud Workstations (the infrastructure powering Studio) can sometimes get confused if you are signed into multiple Google accounts in the same browser session. Please try using a completely new Chrome Profile (not just Incognito) and sign in only with the account used for Firebase Studio.
Rebuild Environment: If the issue persists, open your workspace and press Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette. Search for and run the command: Firebase Studio: Rebuild Environment. This will re-provision the underlying container.
Enable Third-Party Cookies: Ensure that third-party cookies are allowed for cloudworkstations.dev. Firebase Studio renders the preview in an iframe, and blocking these cookies will prevent the preview from authenticating your session.
I also wanted to share a quick reminder that Firebase Studio is currently in a sunset period and is scheduled to be fully retired on March 22, 2027. If you find these environment issues becoming persistent, you might consider exploring Google AI Studio or Project IDX for your future prototyping needs.
I will work on the case and follow up as soon as I have an update. If the steps above do not resolve the redirect, please provide the following so I can escalate this to our engineering team:
Your Workspace ID (found in the URL of your Studio workspace).
A screenshot or video of the issue. You may upload the video to your Google Drive and share it with the support account dps-firebase-files@google.com and share the link with me.
A HAR file captured while you click the Preview button and get redirected.
Cheers,
Marco"