-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple hosting sites with emulator #2570
Comments
edited because issue was moved from the firebase-tools-ui repo to this repo. |
any update to solve this issue yet? |
@ZYinMD I had the same issue. I solved it for my use case with the firebase emulators:start --only "hosting:<target>" --project <projectId> In my case, each site belongs to a different project but I suppose you can avoid the |
okay... 😃 |
Hi ! I have the same reqest, in particular to test (and include in CI workflow) cross web app integration. Many thanks in advance. |
+1 from us! We need to be able to specify an emulator port for each of the hosting targets defined in our config In our use case, we have rewrites to triggered functions on one of our hosting targets. In order to test in development, we have to duplicate those rewrites over to the main target. Since we assign the url's programmatically, it's not feasible to fetch the port from the firebase-tools console output |
Hi. Any updates here? I would really like to have this for testing purposes. |
+1 |
Hi, Any updates? This would be helpful for testing. |
Hi @bkendall, I'm interested in contributing. Is the team open to receiving a PR for these changes? |
Yeah, I think we can review a PR. I'm not 100% sure what the best solution would look like off the top of my head, but I'd be happy to work on that in a PR (though, be warned, my CLI time is pretty limited these days so I'm sorry if I'm not immediately responsive) |
Hello all, Is there any update? I have an issue when I have --project demo-.... prefix with using emulators, that I am not able with any tryings to get emulators with multi site running. When I use target in more hosting entries in firebase.json, this error shows up:
When I use site attribute, this error shows up:
Command I am using: firebase emulators:start --project demo-*** I have this in my "hosting": [
{
"site": "***-frontend",
"source": "src/***-frontend"
},
{
"site": "***-cms",
"source": "src/***-cms"
}
], Any suggestions? Thanks in advance. |
If I configure multiple hosting sites with "deploy targets", and run the emulator, there are 2 problems:
https://project-id.web.app
). The other site(s) are served, but no link is shown. This should be an easy fix. (btw if you googled your way here, please know they're indeed served, good news right?)The text was updated successfully, but these errors were encountered: