-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Dynamic Environment Validation: Introduced Flags for Service-Specific Configuration. #252
Conversation
Added Flags: ENABLE_CLERK, ENABLE_STRIPE, ENABLE_RESEND. Dynamic Validation: The server schema includes service-specific fields only if their respective flags are enabled. Improved Modularity: This allows for better control over which services are active and their corresponding required variables.
@DrHazemAli is attempting to deploy a commit to the Hayden Bleasel Team on Vercel. A member of the Team first needs to authorize it. |
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
very useful for this project!, |
Nice work @DrHazemAli! This is awesome. I have used this and a couple of other related issues as inspiration for #332. Going to close this in favor of it, but I appreciate the work you put into this! |
Summary
I really enjoy working on this project. It’s well-designed, and contributing to it feels both rewarding and inspiring. I’m excited to be part of its growth and look forward to helping make it even better!
However, This PR adds a new feature that dynamically validates environment variables based on the services enabled in the .env file. It addresses #228 by simplifying the configuration process and making it more modular for service-specific setups.
Key Changes
Service Enable Flags:
ENABLE_CLERK
,ENABLE_STRIPE
, andENABLE_RESEND
flags to enable or disable specific services dynamically.Dynamic Schema Validation:
ENABLE_STRIPE=false
,STRIPE_SECRET_KEY
andSTRIPE_WEBHOOK_SECRET
are not required.Improved Modularity:
How to Use
Add the service enable flags to your
.env
file:Include the required environment variables for the services you enable:
Restart your development server after making changes:
Benefits
Related Issues
Closes #228
Checklist