🧑‍💻 chore: add centralized environment variable system

- Add .env.development as single source of truth for dev variables
- Create scripts/generate-env.mjs to generate app-specific .env files
- Add pnpm setup:env command (also runs on postinstall)
- Update turbo.json with globalEnv for cache invalidation
- Add comprehensive docs/ENVIRONMENT_VARIABLES.md
- Update CLAUDE.md with env setup instructions
This commit is contained in:
Wuesteon 2025-11-26 13:08:50 +01:00
parent ff80aeec1f
commit 2328b8938c
7 changed files with 675 additions and 2 deletions

View file

@ -1,9 +1,17 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": [
"NODE_ENV",
"MANA_CORE_AUTH_URL",
"JWT_PUBLIC_KEY",
"AZURE_OPENAI_ENDPOINT",
"AZURE_OPENAI_API_KEY"
],
"tasks": {
"dev": {
"cache": false,
"persistent": true
"persistent": true,
"dotEnv": [".env", ".env.development", ".env.local"]
},
"build": {
"dependsOn": ["^build"],