Skip to content

Commit

Permalink
fix: rename NUXT_API_BASE_URL to fit nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Dec 4, 2023
1 parent 974380d commit 2b2167d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default defineNuxtConfig({
ENV_VALIDATION: process.env.ENV_VALIDATION,
NODE_ENV: process.env.NODE_ENV,
public: {
apiBaseUrl: process.env.NUXT_API_BASE_URL,
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,
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 = config.public.apiBaseUrl;
const BASE_URL = config.public.NUXT_API_BASE_URL as string;

Check failure on line 6 in src/composables/useAPIs.ts

View workflow job for this annotation

GitHub Actions / Validate (18.x, ubuntu-latest)

This assertion is unnecessary since it does not change the type of the expression

// run.cgi/corpora
const CORPORA_LIST_URL = `${BASE_URL}/run.cgi/corpora`;
Expand Down

0 comments on commit 2b2167d

Please sign in to comment.