Skip to content

Commit f7c134d

Browse files
authored
fix(scripts): skip dotenv loading in production (#12326)
1 parent 1fa1dc4 commit f7c134d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scripts/src/extension/dotenv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { BuildFlags } from './flags.ts'
44
import { ManifestFile } from '../../../mask/.webpack/flags.ts'
55

66
export function applyDotEnv(flags: BuildFlags) {
7-
// if (flags.mode === 'production') return
7+
if (flags.mode === 'production') return
88

99
const { parsed, error } = config({ path: new URL('./.env/dev-preference', ROOT_PATH) })
1010
if (error && !error.message.includes('no such file or directory')) {

0 commit comments

Comments
 (0)