Skip to content

Commit

Permalink
Support named pipes when loading .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonian committed Oct 2, 2024
1 parent 1a7f8d2 commit c96d0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export function loadEnvConfig(
try {
const stats = fs.statSync(dotEnvPath)

// make sure to only attempt to read files
if (!stats.isFile()) {
// make sure to only attempt to read files or named pipes
if (!stats.isFile() && !stats.isFIFO()) {
continue
}

Expand Down

0 comments on commit c96d0f2

Please sign in to comment.