-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Deploying to multiple firebase sites using angularFire and ng deploy #3309
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
@davideast , could you clarify if the development team is planning to check the issues? Because currently from what I see the relevant ones deserve no attention and it's easier to work with plain |
@liesahead We are working on getting AngularFire up to date with TypeScript 5 and the latest Firebase SDK. Once that is complete we'll focus on this issue |
@davideast , great, thanks! |
Any progress or updates on this? I have the same issue. |
any update on this ? |
Any update? |
I found out what's wrong: const [defaultFirebaseProject, defulatFirebaseHostingSite] = getFirebaseProjectNameFromFs( I managed to have it working by manually adding this to .firebaserc: "targets": { Of course this means to manually change the hosting site id everytime I want to switch from the "staging" site to the "production" site and viceversa. PS |
Having the same problem |
The issue persists, but managed to do it by using firebase directly (no more ng deploy) using the FIREBASE_FRAMEWORKS_BUILD_TARGET variable. Notice no space between "staging&&" Where "staging" is my build option in angular.json. Hope this helps. |
thanks @pdela! It works! The correct script on a mac would be: |
Versions:
"@angular/cli": "^14.2.10",
"@angular/cdk": "^14.2.1",
"@angular/fire": "^7.4.1",
"firebase": "^9.6.8",
I am having issues with setting up config to allow deploying to a dev/prod sites on Firebase hosting. The sites on firebase are in the same firebase project
I have followed this guide
https://github.com/angular/angularfire/blob/master/docs/deploy/getting-started.md
but I am receiving the same issue as these old unanswered github issues
#3077
#3076
Here is my setup
Should this work if i run
ng deploy <<MY_ANGULAR_PROJECT>> --configuration='dev'
?I receive the following error from
node_modules\@angular\fire\schematics\deploy\builder.js:36:15
The text was updated successfully, but these errors were encountered: