Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

23752 use runtime config when fetching namex version #1551

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

EPortman
Copy link
Collaborator

@EPortman EPortman commented Jan 8, 2025

Issue #: https://app.zenhub.com/workspaces/names-team-board-new-655554cbddd49510027dad2e/issues/gh/bcgov/entity/23752

Description of changes:
Nuxt3 does not expose environment variables directly for security reasons which was causing this method to fail and default to the dev configuration.

This PR makes use of the runtime config to get these environment variables instead that are defined here:
https://github.com/bcgov/name-examination/blob/main/app/nuxt.config.ts#L43

Also this PR gets rid of the default values so when it does not work it is obvious and does not potentially give the 'wrong version'.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

@EPortman
Copy link
Collaborator Author

EPortman commented Jan 8, 2025

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://namex-dev--pr-1551-1g5ueeaa.web.app

@ozamani9gh ozamani9gh merged commit 2fb9b44 into bcgov:main Jan 8, 2025
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants