Skip to content

[Q] Cannot configure deploy for 2 different hosting sites #3076

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

Open
Humberd opened this issue Nov 24, 2021 · 1 comment
Open

[Q] Cannot configure deploy for 2 different hosting sites #3076

Humberd opened this issue Nov 24, 2021 · 1 comment
Assignees

Comments

@Humberd
Copy link
Member

Humberd commented Nov 24, 2021

if (firebaseHostingSite !== defulatFirebaseHostingSite) {
throw new Error('The Firebase Hosting Site specified by your angular.json or .firebaserc is in conflict');
}

The above piece of code prevents me from applying different configurations, so that I could invoke ng deploy -c="development".
My angular.json config looks like this:

// angular.json
"deploy": {
  "builder": "@angular/fire:deploy",
  "options": {
    "prerender": false,
    "ssr": false,
    "browserTarget": "client:build:production",
    "firebaseProject": "my-project"
  },
  "configurations": {
    "production": {
      "firebaseHostingSite": "my-project-prod-version"
    },
    "development": {
      "firebaseHostingSite": "my-project-dev-version"
    }
  }
}

What was the reason to use only the default hosting site and throw error when I want make some changes?

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants