Unverified Commit 4cd8dce3 authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

make .env clickable in terminal (#12210)

A minor chage, that makes `.env` clickable in terminals. When Next.js starts, I am showing some variables in the terminal. To jump to the .env file, adding `./` in front of it makes it clickable.

Example:
![image](https://user-images.githubusercontent.com/18369201/80307289-5fe0d300-87c8-11ea-9ba1-781cf82bc500.png)

One disadvantage is that I am unsure how well this is supported in terminals in general (I am using VSCode's built-in one here)

Any other disadvantages?
parent e4d22cec
...@@ -48,7 +48,7 @@ export function loadEnvConfig(dir: string, dev?: boolean): Env | false { ...@@ -48,7 +48,7 @@ export function loadEnvConfig(dir: string, dev?: boolean): Env | false {
result = dotenvExpand(result) result = dotenvExpand(result)
if (result.parsed) { if (result.parsed) {
log.info(`Loaded env from ${envFile}`) log.info(`Loaded env from ${dotEnvPath}`)
} }
Object.assign(combinedEnv, result.parsed) Object.assign(combinedEnv, result.parsed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment