Skip to content
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

Ability to choose build configuration when using webframework support with angular #6844

Open
pdela opened this issue Mar 7, 2024 · 2 comments

Comments

@pdela
Copy link

pdela commented Mar 7, 2024

[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 pdela added the type: bug label Mar 7, 2024
@google-oss-bot
Copy link
Contributor

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

@9kubczas4
Copy link
Contributor

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.

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

No branches or pull requests

5 participants