@mundogamernetwork/shared-ui 1.1.57 → 1.1.59
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
|
@@ -13,9 +13,15 @@ const routePath = route.path.split('/');
|
|
|
13
13
|
const lang = SUPPORTED_LOCALES.find(l => routePath.includes(l)) || 'en';
|
|
14
14
|
|
|
15
15
|
const config = useRuntimeConfig();
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
|
|
16
|
+
// keyApiUrl overrides apiBaseURL — lets each front point to a specific API base
|
|
17
|
+
// (e.g. community uses agency-api, not its own locale-prefixed API base).
|
|
18
|
+
// Follow the same override pattern as presskit/game/[slug].vue.
|
|
19
|
+
const cfg = (config.public as any)?.mgSharedUi || config.public;
|
|
20
|
+
const apiBase: string =
|
|
21
|
+
(config.public as any).keyApiUrl ||
|
|
22
|
+
cfg.keyApiUrl ||
|
|
23
|
+
(config.public.apiBaseURL as string) ||
|
|
24
|
+
'';
|
|
19
25
|
|
|
20
26
|
const { data: keyData, error: fetchError, pending, refresh } = await useAsyncData(
|
|
21
27
|
`public-key-${slug}`,
|