Skip to content

Commit

Permalink
fix: renaming env vars so they're present on cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Dec 4, 2023
1 parent 4f38f00 commit c77dc07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useAPIs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit c77dc07

Please sign in to comment.