@mundogamernetwork/shared-ui 1.1.54 → 1.1.55

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.54",
3
+ "version": "1.1.55",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -3,8 +3,6 @@
3
3
  // (Discord/Telegram/WhatsApp) and from anywhere — no need to enter a dashboard.
4
4
  // Anyone can view; requesting a key uses KeyBrowser's hybrid auth (it redirects
5
5
  // to login on 401 and returns).
6
- import httpService from '../services/httpService';
7
-
8
6
  definePageMeta({ layout: 'blank' });
9
7
 
10
8
  const route = useRoute();
@@ -14,9 +12,11 @@ const SUPPORTED_LOCALES = ['en', 'pt-BR', 'es', 'de', 'ro', 'ar-AE'];
14
12
  const routePath = route.path.split('/');
15
13
  const lang = SUPPORTED_LOCALES.find(l => routePath.includes(l)) || 'en';
16
14
 
15
+ const apiBase = (import.meta.env?.VITE_API_BASE_URL as string) || '';
16
+
17
17
  const { data: keyData, error: fetchError, pending } = await useAsyncData(
18
18
  `public-key-${slug}`,
19
- () => httpService.get<any>(`/public/keys/${slug}`, { params: { lang } }).then(r => r.data),
19
+ () => $fetch<any>(`${apiBase}/public/keys/${slug}`, { params: { lang } }),
20
20
  { lazy: false },
21
21
  );
22
22