Skip to content

Conversation

@ReverseGem7
Copy link

  • Remove dotenv dependency and deprecated env.d.ts type declarations
  • Implement Zod schema for runtime validation and type inference
  • Add global type augmentation for process.env
  • Update deploy scripts to use --env-file flag

Example output:

❌ Invalid environment variables: {
  _errors: [],
  DISCORD_TOKEN: {
    _errors: [ "Required" ],
  },
  BOT_ENDPOINT_API_KEY: {
    _errors: [ "Required" ],
  },
  EXPERIENCE_ENDPOINT_API_SECRET: {
    _errors: [ "Required" ],
  },
  BOT_ERROR_WEBHOOK_URL: {
    _errors: [ "Required" ],
  },
  REDIS_USERNAME: {
    _errors: [ "Required" ],
  },
  REDIS_PASSWORD: {
    _errors: [ "Required" ],
  },
  REDIS_HOST: {
    _errors: [ "Required" ],
  },
}

ReverseGem7 and others added 5 commits June 6, 2025 15:15
- Remove dotenv dependency and deprecated env.d.ts type declarations
- Implement Zod schema for runtime validation and type inference
- Add global type augmentation for process.env
- Update deploy scripts to use --env-file flag
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 this pull request may close these issues.

1 participant