constants: Move URLs to constants

Fixes #1923

This moves all URLs from code to constants.
This commit is contained in:
regexowl 2024-04-26 12:30:42 +02:00 committed by Lucas Garfield
parent bb91840eef
commit e9d28498e1
26 changed files with 146 additions and 68 deletions

View file

@ -84,8 +84,8 @@ const Packages = () => {
// select the correct version of EPEL repository
// the urls are copied over from the content service
const epelRepoUrlByDistribution = distribution.startsWith('rhel-8')
? 'https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/'
: 'https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/';
? EPEL_8_REPO_DEFINITION.url
: EPEL_9_REPO_DEFINITION.url;
const { data: epelRepo, isSuccess: isSuccessEpelRepo } =
useListRepositoriesQuery({