Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/payload/src/bin/loadEnv.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nextEnvImport from '@next/env'
import * as nextEnvImport from '@next/env'

import { findUpSync } from '../utilities/findUp.js'
const { loadEnvConfig } = nextEnvImport
const { loadEnvConfig } = (nextEnvImport as any).default ?? nextEnvImport

/**
* Try to find user's env files and load it. Uses the same algorithm next.js uses to parse env files, meaning this also supports .env.local, .env.development, .env.production, etc.
Expand Down
Loading