@campxdev/shared 3.0.9 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react'
|
|
2
|
-
import { campxTenantKey } from '../contexts/Providers'
|
|
3
2
|
|
|
4
3
|
// Configuration for tenant-specific batch suffixes
|
|
5
4
|
const tenantBatchConfig = {
|
|
@@ -21,7 +20,7 @@ export const batchOptions = (() => {
|
|
|
21
20
|
})
|
|
22
21
|
|
|
23
22
|
// Check if current tenant has specific batch configuration
|
|
24
|
-
const tenantConfig = tenantBatchConfig[
|
|
23
|
+
const tenantConfig = tenantBatchConfig[window.location.hostname.split('.')[0]]
|
|
25
24
|
|
|
26
25
|
if (tenantConfig) {
|
|
27
26
|
const { batchConfigs } = tenantConfig
|