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

[BUG] using default without setting envar result in JavaScript heap out of memory #24

Open
jclaessens97 opened this issue Jan 23, 2020 · 1 comment
Labels
bug Something isn't working more detail needed Please provide an example or recreation

Comments

@jclaessens97
Copy link

jclaessens97 commented Jan 23, 2020

Hello,

I've installed the package and it works perfectly in a cloud environment (where the env-var is populated). It doesn't work locally when I haven't set an .env file using the dotenv package and require the config at the first line of nuxt.config.js. If I locally just use the default option in the nuxt-env module, it results in a memory leak when trying to browse the served url.

I assume this is a bug since why else would there be an option to default the var when you have to include it with an .env file (or inline in the NPM script) anyway? 😄

If you need more info or have any more questions let me know 😉I didn't have the time to look in the code of nuxt-env to make a PR so no clue what could be the source of this problem.

@samtgarson
Copy link
Owner

Please could you provide a recreation on codesanbox? Are you sure this occurs on a fresh Nuxt app with no other code or dependencies?

@samtgarson samtgarson added bug Something isn't working more detail needed Please provide an example or recreation labels Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more detail needed Please provide an example or recreation
Projects
None yet
Development

No branches or pull requests

2 participants