Skip to content

Commit 4394fd3

Browse files
committed
fix: check stringified value
1 parent 033cb86 commit 4394fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default defineNuxtModule<ModuleOptions>({
131131
})
132132
let env = hub.remote
133133
// Guess the environment from the branch name if env is 'true'
134-
if (env === 'true') {
134+
if (String(env) === 'true') {
135135
try {
136136
const branch = execSync('git branch --show-current', { stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim()
137137
env = (branch === project.productionBranch ? 'production' : 'preview')

0 commit comments

Comments
 (0)