1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-27564] Self-host configuration is not applied with nx build (#17279)

* fix: web not using env variables

* fix: apply claude suggestion

* fix: remove non-working serve targets
This commit is contained in:
Andreas Coroiu
2025-11-24 16:36:23 +01:00
committed by GitHub
parent 637f4961bb
commit 7e32d0a59f
4 changed files with 13 additions and 34 deletions

View File

@@ -3,6 +3,7 @@ const { buildConfig } = require(path.resolve(__dirname, "../../apps/web/webpack.
module.exports = (webpackConfig, context) => {
const isNxBuild = context && context.options;
if (isNxBuild) {
return buildConfig({
configName: "Commercial",
@@ -23,6 +24,7 @@ module.exports = (webpackConfig, context) => {
alias: "@bitwarden/commercial-sdk-internal",
},
],
env: context.options.env,
});
} else {
return buildConfig({