File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ export function defineBuildConfig() {
55
55
const appContext = node . getContext ( OhosPluginId . OHOS_APP_PLUGIN ) as OhosAppContext ;
56
56
const buildMode = appContext . getBuildMode ( )
57
57
const extParams = hvigor . getParameter ( ) . getExtParams ( ) ;
58
- const buildProfileEnvFile = appContext . getBuildProfileOpt ( ) ?. app ?. products [ 0 ] ?. buildOption ?. arkOptions ?. buildProfileFields [ `env_file_ ${ buildMode } ` ] ;
58
+ const buildProfileEnvFile = appContext . getBuildProfileOpt ( ) ?. app ?. products [ 0 ] ?. buildOption ?. arkOptions ?. buildProfileFields [ `${ buildMode } ` ] ;
59
59
let configFile ;
60
60
if ( process . env . ENVFILE ) {
61
61
configFile = process . env . ENVFILE ;
62
62
console . log ( `configFile=${ configFile } , from process.env.ENVFILE` ) ;
63
63
} else if ( buildProfileEnvFile ) {
64
64
configFile = buildProfileEnvFile ;
65
- console . log ( `configFile=${ configFile } , from buildProfileFields[env_file_ ${ buildMode } ]` ) ;
65
+ console . log ( `configFile=${ configFile } , from buildProfileFields[${ buildMode } ]` ) ;
66
66
} else {
67
67
configFile = ".env"
68
68
console . log ( `configFile=${ configFile } , from default` ) ;
You can’t perform that action at this time.
0 commit comments