Skip to content

Commit

Permalink
fix: use runtime config when fetching namex version (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
EPortman authored Jan 8, 2025
1 parent 982429c commit 2fb9b44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/components/app_footer/VersionInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ onMounted(async () => {
})
const fetchNameXVersion = async (): Promise<string> => {
const baseUrl = process.env.NUXT_NAMEX_API_URL || 'https://namex-dev.apps.silver.devops.gov.bc.ca'
const versionPath = process.env.NUXT_NAMEX_API_VERSION || '/api/v1'
const config = useRuntimeConfig()
const baseUrl = config.public.namexAPIURL || ''
const versionPath = config.public.namexAPIVersion || ''
const versionEndpoint = `${baseUrl}${versionPath}/meta/info`
try {
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-examination",
"version": "1.2.36",
"version": "1.2.37",
"private": true,
"scripts": {
"build": "nuxt generate",
Expand Down

0 comments on commit 2fb9b44

Please sign in to comment.