Skip to content

Commit 96ab785

Browse files
committed
refactor: simplify offline-check conditional
1 parent 03103fc commit 96ab785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/dev/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const dev = async (options: OptionValues, command: BaseCommand) => {
137137

138138
env[BLOBS_CONTEXT_VARIABLE] = { sources: ['internal'], value: encodeBlobsContext(blobsContext) }
139139

140-
if (!options.offline && !options.offlineEnv) {
140+
if (!(options.offline || options.offlineEnv)) {
141141
env = await getEnvelopeEnv({ api, context: options.context, env, siteInfo })
142142
log(`${NETLIFYDEVLOG} Injecting environment variable values for ${chalk.yellow('all scopes')}`)
143143
}

0 commit comments

Comments
 (0)