Skip to content

Commit 319e8de

Browse files
committed
fix(cli): only merge flow preview config for local mode
1 parent 302d73a commit 319e8de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/src/commands/flow/flow.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,12 @@ async function preview(
240240
} & SyncOptions,
241241
flowPath: string
242242
) {
243-
opts = await mergeConfigWithConfigFile(opts);
243+
const useLocalPathScripts = !!opts.local;
244+
if (useLocalPathScripts) {
245+
opts = await mergeConfigWithConfigFile(opts);
246+
}
244247
const workspace = await resolveWorkspace(opts);
245248
await requireLogin(opts);
246-
const useLocalPathScripts = !!opts.local;
247249
const codebases = useLocalPathScripts ? await listSyncCodebases(opts) : [];
248250

249251
// Normalize path - ensure it's a directory path to a .flow folder

0 commit comments

Comments
 (0)