Firebase Deployment Fails Due to Unresolved Hosting Site or Target
I encountered an issue while attempting to deploy a forked project to Firebase using Google Cloud Build. The project builds successfully; however, the deployment process fails with an error indicating that no hosting site or target has been specified.
Steps to Reproduce:
- Fork the project.
- Set up Google Cloud Build and Firebase
- Build and deploy
Actual Result:
The deployment process fails with the following error message: "Error: No site or target specified for deployment."
Troubleshooting Attempts:
I tried specifying the hosting site explicitly using the command: firebase deploy --only=hosting:site_name. However, a new error message was encountered: "Error: Hosting site or target not detected in firebase.json."
Request: I kindly request assistance in resolving this deployment issue. It's unclear whether the error stems from a misconfiguration within the firebase.json file or an issue with Firebase deployment commands.
Thank you for your attention to this matter.
Hello @LTOpen , have you tried to open the Host tab in the Firebase Console?
https://localess.org/docs/getting-started#hosting
By default, it will be deployed in the default hosting site, the hosting is created when you open the Hosting tab.
I'm currently working to Localess as Firebase Extension, and all processes will be done automatically, just by pressing the Install button #53
Got it, thanks for your response. I have tried, but unfortunately, I still encountered a problem. I hope the extension can be released soon.
In case you need help , I can help you to setup the project