From e5e8cce621127e009f32549549cb25166a248b07 Mon Sep 17 00:00:00 2001 From: ctot-nondef Date: Mon, 11 Dec 2023 09:48:39 +0100 Subject: [PATCH] fix: renaming env vars in line with spec (RTFM) --- nuxt.config.ts | 10 +++++----- src/composables/useAPIs.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 6328e16..34f2ee9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -81,11 +81,11 @@ export default defineNuxtConfig({ ENV_VALIDATION: process.env.ENV_VALIDATION, NODE_ENV: process.env.NODE_ENV, public: { - NUXT_PUBLIC_API_BASE_URL: process.env.K8S_NUXT_PUBLIC_API_BASE_URL, - NUXT_PUBLIC_APP_BASE_URL: process.env.K8S_NUXT_PUBLIC_APP_BASE_URL, - NUXT_PUBLIC_MATOMO_BASE_URL: process.env.K8S_NUXT_PUBLIC_MATOMO_BASE_URL, - NUXT_PUBLIC_MATOMO_ID: process.env.K8S_NUXT_PUBLIC_MATOMO_ID, - NUXT_PUBLIC_REDMINE_ID: process.env.K8S_NUXT_PUBLIC_REDMINE_ID, + apiBaseUrl: '', + NUXT_PUBLIC_APP_BASE_URL: process.env.NUXT_PUBLIC_APP_BASE_URL, + NUXT_PUBLIC_MATOMO_BASE_URL: process.env.NUXT_PUBLIC_MATOMO_BASE_URL, + NUXT_PUBLIC_MATOMO_ID: process.env.NUXT_PUBLIC_MATOMO_ID, + NUXT_PUBLIC_REDMINE_ID: process.env.NUXT_PUBLIC_REDMINE_ID, }, }, build: { diff --git a/src/composables/useAPIs.ts b/src/composables/useAPIs.ts index eb0d488..51a52e3 100644 --- a/src/composables/useAPIs.ts +++ b/src/composables/useAPIs.ts @@ -3,7 +3,7 @@ export function useAPIs() { const config = useRuntimeConfig(); - const BASE_URL: string = config.public.NUXT_PUBLIC_API_BASE_URL; + const BASE_URL: string = config.public.apiBaseUrl; // run.cgi/corpora const CORPORA_LIST_URL = `${BASE_URL}/run.cgi/corpora`;