Skip to content

Commit 835cea8

Browse files
committed
for some reason the tests failed in the pipeline but not locally
1 parent f120f04 commit 835cea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/utils/extract-project-env-vars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function readEnvFiles(fileNames: string[], { monorepoRoot, appPath }: BuildOptio
1010
...(monorepoRoot !== appPath ? [path.join(monorepoRoot, fileName)] : []),
1111
path.join(appPath, fileName),
1212
])
13-
.filter((filePath) => fs.statSync(filePath, { throwIfNoEntry: false })?.isFile())
13+
.filter((filePath) => fs.existsSync(filePath) && fs.statSync(filePath).isFile())
1414
.map((filePath) => parse(fs.readFileSync(filePath).toString()))
1515
.reduce<Record<string, string>>((acc, overrides) => ({ ...acc, ...overrides }), {});
1616
}

0 commit comments

Comments
 (0)