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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user