@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.57",
3
+ "version": "1.1.59",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -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
- // apiBaseURL may be undefined at build time on some deployments fall back to
17
- // a relative path so the SSR node process at least resolves against the same host.
18
- const apiBase = (config.public.apiBaseURL as string) || '';
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}`,