Skip to content

Commit

Permalink
fix: re add NUXT_PUBLIC_UPDATE_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
felixleo22 committed Oct 17, 2023
1 parent c8cfe40 commit d0e7f4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG NUXT_PUBLIC_GRAPHQL_HOST
ARG NUXT_PUBLIC_UPDATE_HOST
ARG NUXT_PUBLIC_ENRICH_HOST
ARG NUXT_PUBLIC_APIKEY_HOST
ARG NUXT_PUBLIC_MAIL_HOST
ARG NUXT_PUBLIC_HEALTH_HOST
ARG NUXT_MAIL_HOST
ARG NUXT_MAIL_APIKEY
Expand Down
1 change: 1 addition & 0 deletions src/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineNuxtConfig({
updateHost: process.env.NUXT_PUBLIC_UPDATE_HOST || 'http://localhost:59702',
enrichHost: process.env.NUXT_PUBLIC_ENRICH_HOST || 'http://localhost:59703',
apikeyHost: process.env.NUXT_PUBLIC_APIKEY_HOST || 'http://localhost:59704',
mailHost: process.env.NUXT_PUBLIC_UPDATE_HOST || 'http://localhost:59705',
healthHost: process.env.NUXT_PUBLIC_HEALTH_HOST || 'http://localhost:59707',
elasticEnv: process.env.NUXT_PUBLIC_ELASTIC_ENV || 'development',
version: process.env.NUXT_PUBLIC_VERSION || 'development',
Expand Down
1 change: 1 addition & 0 deletions src/frontend/pages/open-api.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const items = ref([
]);
const host = computed(() => {
if (tab.value === 0) { return runtimeConfig.public.graphqlHost; }
if (tab.value === 1) { return runtimeConfig.public.enrichHost; }
if (tab.value === 2) { return runtimeConfig.public.updateHost; }
if (tab.value === 3) { return runtimeConfig.public.apikeyHost; }
Expand Down

0 comments on commit d0e7f4f

Please sign in to comment.