diff --git a/nuxt.config.ts b/nuxt.config.ts index d2600e0..6328e16 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_API_BASE_URL: process.env.NUXT_API_BASE_URL, - 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, + 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, }, }, build: { diff --git a/src/composables/useAPIs.ts b/src/composables/useAPIs.ts index 63df2c9..eb0d488 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_API_BASE_URL; + const BASE_URL: string = config.public.NUXT_PUBLIC_API_BASE_URL; // run.cgi/corpora const CORPORA_LIST_URL = `${BASE_URL}/run.cgi/corpora`;