vendix-backend-middleware
SKILL.md
Vendix Backend Middleware & Domain Resolution
Middleware Pattern - Dynamic domain resolution, multi-tenant context, and custom middlewares.
🌐 Domain Resolution Middleware
Purpose
The DomainResolverMiddleware is responsible for:
- Resolving subdomains (e.g.:
tienda.tiendavendix.com) - Extracting store_id and organization_id from the domain
- Injecting context into the request for multi-tenancy
- Caching results to optimize performance
metadata: scope: [root] auto_invoke: "Configuring middleware"