haydenbleasel / next-forge

Production-grade Turborepo template for Next.js apps.
https://www.next-forge.com/
MIT License
3.8k stars 297 forks source link

Add a suggestion to the docs to symlink env vars? #207

Open paulgrieselhuber opened 1 week ago

paulgrieselhuber commented 1 week ago

I'm not sure if this is a good idea or not, so not creating a PR for the docs yet (happy to if you like).

To avoid maintaining multiple copies of the .env.local file in development, I just symlinked from a copy in the root of the project to apps/app/.env.local, apps/api/.env.local, apps/web/.env.local and packages/database/.env.

Much better from a workflow standpoint. Any reason not to do this?

haydenbleasel commented 1 week ago

@paulgrieselhuber I didn't even think about that 😮 If it works, that would be phenomenal! I'd love to see a PR if you have the time!