Skip to content

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

Open

Description

@Humberd

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?

Activity

  1. google-oss-bot commented on Nov 24, 2021

    @google-oss-bot

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

  2. changed the title [-][Q] [/-] [+][Q] Cannot configure deploy for 2 different hosting sites[/+] on Nov 24, 2021
  3. self-assigned this
    on Jun 23, 2023
  4. added
    comp: schematics
    type: bug
    version: legacy (v7-v16)
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp: schematicstype: bugversion: legacy (v7-v16)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions