Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Possibility to reference existing variables #330

Open
kkuriata opened this issue Sep 13, 2021 · 2 comments · May be fixed by #253 or #342
Open

[Feature Request] Possibility to reference existing variables #330

kkuriata opened this issue Sep 13, 2021 · 2 comments · May be fixed by #253 or #342

Comments

@kkuriata
Copy link

Possibility to use existing variables:

GENERIC_PATH=/some/path
SPECIFIC_PATH_1=${GENERIC_PATH}/specific1
SPECIFIC_PATH_2=${GENERIC_PATH}/specific2
@JamersonAguiarOSF
Copy link

Any updates about this?

@motdotla
Copy link

you can use dotenvx for this

HELLO="World"
HELLO2=$HELLO
// index.js
console.log(`Hello ${process.env.HELLO}`)
console.log(`Hello ${process.env.HELLO2}`)
dotenvx run -- node index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants