fix(api): derive host from storefront domain
Some checks failed
Architecture Governance / architecture (push) Has been cancelled

Every storefront, including nested subdomains, uses its matching api.<hostname> endpoint.
This commit is contained in:
2026-08-20 14:31:22 +04:00
parent f4ea4c7af8
commit 640360d63c
15 changed files with 88 additions and 120 deletions

View File

@@ -4,7 +4,7 @@ export const environment = {
useMockBootstrapOnLocal: false,
fallbackTenantKey: 'default',
localhostApiUrl: '/api',
tenantApiTemplate: '{origin}/backend',
tenantApiTemplate: '{protocol}//api.{hostname}',
tenantApiBaseUrls: {},
brandName: 'Marketplace',
brandFullName: 'Marketplace',

View File

@@ -5,7 +5,7 @@ export const environment = {
useMockBootstrapOnLocal: true,
fallbackTenantKey: 'default',
localhostApiUrl: '/api',
tenantApiTemplate: '{origin}/backend',
tenantApiTemplate: '{protocol}//api.{hostname}',
tenantApiBaseUrls: {},
brandName: 'Marketplace',
brandFullName: 'Marketplace',