Feature #9538
openImplement a multi-tenant architecture using subdomain-based routing for the eCommerce platform. Each company (tenant) should automatically have its own eCommerce and Admin URLs based on the company name.
100%
Description
Implement subdomain-based routing for the eCommerce application so that each company has its own dedicated eCommerce URL.
Example
Local Development
mythri.pos.localhost:5173
acme.pos.localhost:5173
Production
mythri.pos.example.com
acme.pos.example.com
The application should automatically identify the company (tenant) from the subdomain and load the corresponding products, branding, settings, and other eCommerce data.
Requirements
Support multiple companies (tenants).
Automatically resolve the tenant from the subdomain.
No manual route creation for each company.
Base domain should be configurable for local and production environments.
New companies should work automatically without additional code changes.
Acceptance Criteria
Company-specific eCommerce URLs are accessible.
The correct tenant data is loaded based on the subdomain.
Local and production environments both support subdomain-based routing.
Adding a new company automatically enables its eCommerce URL.
Subtasks
Related issues