Closed PP-Contrib closed 1 month ago
The pull request introduces several enhancements to the documentation and functionality of the Unoapi Cloud project. Key updates in README.md
include the addition of a new subsection on templates, expanded configuration options, and updates to environment variables. A new constant, ONLY_HELLO_TEMPLATE
, is introduced in src/defaults.ts
, which influences the loading of message templates in src/services/data_store_redis.ts
. The changes improve the clarity of documentation and the flexibility of template management based on configuration settings.
File | Change Summary |
---|---|
README.md | Added a new subsection under "Templates" detailing default templates and configuration options. Updated environment variables and HTTP configuration instructions. Enhanced legal disclaimers and added a badge for the Postman collection. |
src/defaults.ts | Introduced a new exported constant ONLY_HELLO_TEMPLATE , which checks the environment variable and defaults to false . |
src/services/data_store_redis.ts | Modified the loadTemplates method to conditionally include templates based on the ONLY_HELLO_TEMPLATE value. Reorganized method structure to accommodate new logic. |
README.md
file, focusing on enhancing documentation related to configuration options and environment variables, which aligns with the changes made in the main PR regarding the ONLY_HELLO_TEMPLATE
variable.In the land of code where templates play,
A new flag was born to brighten the day.
WithONLY_HELLO_TEMPLATE
, choices abound,
In the garden of functions, new paths are found.
So hop with delight, let your code sing,
For clearer docs and templates, oh what joy they bring! 🐇✨
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?
thanks @PP-Contrib
Summary by CodeRabbit
New Features
ONLY_HELLO_TEMPLATE
configuration option to control default template behavior.Improvements
Legal Notices