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] Consider adding --dotenv to nuxi prepare #334

Closed
madebyfabian opened this issue Jan 31, 2024 · 0 comments · Fixed by #377
Closed

[Feature] Consider adding --dotenv to nuxi prepare #334

madebyfabian opened this issue Jan 31, 2024 · 0 comments · Fixed by #377

Comments

@madebyfabian
Copy link
Sponsor

I am trying to setup a monorepo and stumble on a few things which makes it hard to use env variables with Nuxt monorepos, where every app of the monorepo needs access to these.

Current issue

I've tried using the --dotenv on every script inside every app, to point to the main .env file which sits in the root of the monorepo. This does not fully work though, since some of the steps triggered by nuxi prepare require env variables (in my case graphql type generation). And since the prepare command does not have the --dotenv option like the others, I am not able to use this feature.

Alternatives

I've also tried other option such as the dotenv-cli, which comes with it's own problems though, especially regarding to Vercel deployment and package installations.

@madebyfabian madebyfabian changed the title Consider adding --dotenv to nuxi prepare [Feature] Consider adding --dotenv to nuxi prepare Jan 31, 2024
@pi0 pi0 closed this as completed in #377 Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant