From d9608c9690a1dac185118ec1b9fa065ea392d628 Mon Sep 17 00:00:00 2001 From: TDLaouer Date: Mon, 14 Jul 2025 12:58:26 +0200 Subject: [PATCH] OOOKEEEEEEEEEE --- Dockerfile | 4 ++-- composables/useApiBase.ts | 2 +- nuxt.config.ts | 4 ++-- pages/index.vue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83fb711..d1bc394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ RUN corepack enable WORKDIR /app -ARG NUXT_PUBLIC_API_BASE_URL +ARG NUXT_PUBLIC_API_URL ARG NUXT_PUBLIC_IS_UPLOAD_ACTIVE -ENV NUXT_PUBLIC_API_BASE_URL=${NUXT_PUBLIC_API_BASE_URL} +ENV NUXT_PUBLIC_API_URL=${NUXT_PUBLIC_API_URL} ENV NUXT_PUBLIC_IS_UPLOAD_ACTIVE=${NUXT_PUBLIC_IS_UPLOAD_ACTIVE} diff --git a/composables/useApiBase.ts b/composables/useApiBase.ts index 6bc31e0..f2dad2d 100644 --- a/composables/useApiBase.ts +++ b/composables/useApiBase.ts @@ -1 +1 @@ -export const useApiBase = () => useRuntimeConfig().public.apiBase; +export const useApiBase = () => useRuntimeConfig().public.API_BASE; diff --git a/nuxt.config.ts b/nuxt.config.ts index 15715cd..f93c2ea 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -17,8 +17,8 @@ export default defineNuxtConfig({ vite: { plugins: [tailwindcss()] }, runtimeConfig: { public: { - apiBase: "", - isUploadActive: "", + API_BASE: "", + IS_UPLOAD_ACTIVE: "", }, }, primevue: { diff --git a/pages/index.vue b/pages/index.vue index cece792..ac28009 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -40,7 +40,7 @@ cardStore.fetchCollections(); const activeItem = ref(); const isUploadActive = computed(() => - config.public.isUploadActive === "true" ? true : false, + config.public.IS_UPLOAD_ACTIVE === "true" ? true : false, ); const play = (collection: string) => {