How do you share envrionment variables? #320
-
|
Hi! I have a monorepo with 2 Next.js apps. I'm wondering, what's the best practice for sharing environment variables on those 2 applications? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
My answer is completely unrelated to turborepo, but we manage environment variabels with doppler, where you can have a config per app. And also share config between apps. So you can basically mimick the structure you have in code. |
Beta Was this translation helpful? Give feedback.
-
|
We've updated our documentation for best practices in monorepos when handling environment variables: https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#best-practices |
Beta Was this translation helpful? Give feedback.
We've updated our documentation for best practices in monorepos when handling environment variables: https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#best-practices