Enhancing Multi-Tenant Capabilities and Error Handling in PostGenerator and SetTenantSchema Middleware
Introduction
Our application required enhancements to its multi-tenant capabilities and error handling mechanisms. The existing PostGenerator and SetTenantSchema middleware needed improvements for better compatibility with multi-tenant setups and to ensure visibility into issues without disrupting user experience.
Development
The enhancements involved updating the PostGenerator to include tenant checks before querying for the last used post example and permanent prompts.