Skip to content

Commit

Permalink
handle absolute environment file path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Jan 27, 2024
1 parent 38b21f5 commit 71ee9ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/application/src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,11 @@ export class Application extends Container implements ApplicationContract {
* Returns the resolved path to the environment file.
*/
environmentFilePath (): string {
const environmentFilePath = Path.resolve(
[this.environmentPath(), this.environmentFile()].join('/')
)
const environmentFilePath = Path.isAbsolute(this.environmentFile())
? this.environmentFile()
: Path.resolve(
[this.environmentPath(), this.environmentFile()].join('/')
)

return this.resolveFileURLToPath(environmentFilePath)
}
Expand Down

0 comments on commit 71ee9ff

Please sign in to comment.