nuxt-community / dotenv-module

Loads your .env file into your application context
MIT License
495 stars 30 forks source link

Variable composition doesn't work #53

Closed proArtex closed 3 years ago

proArtex commented 4 years ago

Version

v1.4.0

Reproduction link

http://there-is-no-link

Steps to reproduce

VUE_APP_A=A VUE_APP_AB=$VUE_APP_A/B

What is expected ?

VUE_APP_A=A VUE_APP_AB=A/B

What is actually happening?

VUE_APP_A=A VUE_APP_AB=$VUE_APP_A/B

Additional comments?

This works fine in vue-cli SPA, but doesn't work in nuxt. I assume they both use the same library, but nuxt is missing something.

This bug report is available on Nuxt community (#c32)
atinux commented 3 years ago

This is possible by simply concatenating them using the runtimeConfig