angular / angular/angularfire

[Q] Cannot configure deploy for 2 different hosting sites

Abierto
#3,076 1 comentario 3 reacciones 1 asignado Reclamado por @davideast Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
7.8k
Forks
2.2k
Merge medio
22 h 28 min
PR fusionados (30 d)
6

Descripción

https://github.com/angular/angularfire/blob/72d3c2e26ebd7ff367f250e74aa076cc3bd3cc40/src/schematics/deploy/builder.ts#L32-L34

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:

```json
// 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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.