firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Ability to choose build configuration when using webframework support with angular

Open pdela opened this issue 1 year ago • 1 comments

[REQUIRED] Environment info

firebase-tools: 13.4.0

Platform: Windows

When using with Angular (17.1. 2) ssr: firebase experiments:enable webframeworks firebase deploy --only hosting:test

[REQUIRED] Expected behavior

Give the opportunity to change the angular build configuration to use, or at least respect the default configuration as listed in Angular.json.

[REQUIRED] Actual behavior

Doesn't allow to select a specific build configuration in Angular. Even if the default configuration is set to "test" in Angular.json, the build and deploy occurs with the "production" configuration.

pdela avatar Mar 07 '24 18:03 pdela

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

google-oss-bot avatar Mar 07 '24 18:03 google-oss-bot

Hi @pdela,

The solution could be to use the FIREBASE_FRAMEWORKS_BUILD_TARGET variable.

On MacOS: FIREBASE_FRAMEWORKS_BUILD_TARGET='test' firebase deploy --only hosting On Windows: set FIREBASE_FRAMEWORKS_BUILD_TARGET='test' firebase deploy --only hosting

Support for FIREBASE_FRAMEWORKS_BUILD_TARGET variable is already implemented in recent versions of the firebase-tools.

9kubczas4 avatar Apr 12 '24 17:04 9kubczas4