We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2131d70 commit 544ff98Copy full SHA for 544ff98
packages/web/webpack.config.mjs
@@ -21,6 +21,13 @@ const loadEnvFile = (envName) => {
21
22
const envFile = map[envName];
23
24
+ // Handle unmapped environment names explicitly
25
+ if (typeof envFile === "undefined") {
26
+ console.error(
27
+ `Error: Unrecognized environment name '${envName}'. Valid options are: ${Object.keys(map).join(", ")}.`
28
+ );
29
+ return;
30
+ }
31
// Skip file loading for test environment or if file is explicitly null
32
if (envName === "test" || envFile === null) {
33
console.log(
0 commit comments