From d4f803e5a59b0b6c371a3c904d1ca80c3dd3a957 Mon Sep 17 00:00:00 2001 From: TDLaouer Date: Mon, 14 Jul 2025 13:08:30 +0200 Subject: [PATCH] we be renaming --- composables/useApiBase.ts | 2 +- nuxt.config.ts | 4 ++-- pages/index.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composables/useApiBase.ts b/composables/useApiBase.ts index f2dad2d..6bc31e0 100644 --- a/composables/useApiBase.ts +++ b/composables/useApiBase.ts @@ -1 +1 @@ -export const useApiBase = () => useRuntimeConfig().public.API_BASE; +export const useApiBase = () => useRuntimeConfig().public.apiBase; diff --git a/nuxt.config.ts b/nuxt.config.ts index f93c2ea..15715cd 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -17,8 +17,8 @@ export default defineNuxtConfig({ vite: { plugins: [tailwindcss()] }, runtimeConfig: { public: { - API_BASE: "", - IS_UPLOAD_ACTIVE: "", + apiBase: "", + isUploadActive: "", }, }, primevue: { diff --git a/pages/index.vue b/pages/index.vue index ac28009..cece792 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -40,7 +40,7 @@ cardStore.fetchCollections(); const activeItem = ref(); const isUploadActive = computed(() => - config.public.IS_UPLOAD_ACTIVE === "true" ? true : false, + config.public.isUploadActive === "true" ? true : false, ); const play = (collection: string) => {