Skip to content

Remove old env vars#717

Open
patrikk0123 wants to merge 4 commits into
project-ncl:mainfrom
patrikk0123:remove-deprecated
Open

Remove old env vars#717
patrikk0123 wants to merge 4 commits into
project-ncl:mainfrom
patrikk0123:remove-deprecated

Conversation

@patrikk0123

Copy link
Copy Markdown
Member

No description provided.

@patrikk0123 patrikk0123 changed the title Remove deprecated env vars Remove old env vars Jun 9, 2026
Comment thread src/index.tsx
!pncUrl.startsWith(window.location.origin) &&
!(
import.meta.env.VITE_WEB_UI_URL === window.location.origin ||
import.meta.env.VITE_WEB_SECONDARY_UI_URL === window.location.origin

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are no longer needed because UI runs on the same URL as REST API

@patrikk0123

patrikk0123 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

I'd also remove VITE_GERRIT_URL_BASE and VITE_GERRIT_STAGE_URL_BASE,
but I can still see a few internal repos in Gerrit existing on devel, but not stage and prod.

/pnc-web/scm-repositories?s1-sort=none&s1-pageIndex=1&s1-pageSize=50&s1-q=%28internalUrl%3Dlike%3D"%25code%25"%29

['code']: 'Gerrit' seems to cover it

@patrikk0123 patrikk0123 requested a review from matedo1 June 9, 2026 14:52
const preDefinedScmsPrefix: { [key: string]: string } = {
[import.meta.env.VITE_GERRIT_URL_BASE || 'code']: 'Gerrit',
[import.meta.env.VITE_GERRIT_STAGE_URL_BASE || 'code']: 'Gerrit',
['code']: 'Gerrit',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jomrazek , can you please confirm this change is safe?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants