Skip to content

Commit 9411f0a

Browse files
author
Ben Newman
committed
Make sure meteorEnv is defined in Cordova environments.
Fixes meteor#6459.
1 parent 7227f64 commit 9411f0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/cordova/builder.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@ export class CordovaBuilder {
409409
ROOT_URL_PATH_PREFIX: '',
410410
DDP_DEFAULT_CONNECTION_URL: mobileServerUrl,
411411
autoupdateVersionCordova: autoupdateVersion,
412-
appId: this.projectContext.appIdentifier
412+
appId: this.projectContext.appIdentifier,
413+
meteorEnv: {
414+
NODE_ENV: process.env.NODE_ENV || "production",
415+
TEST_METADATA: process.env.TEST_METADATA || "{}"
416+
}
413417
};
414418

415419
if (publicSettings) {

0 commit comments

Comments
 (0)