Skip to content

Commit

Permalink
Extract repo link to env
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 5, 2025
1 parent 094fcc1 commit 2bdb7af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/ui/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export default defineConfig({
},
define: {
'process.env.APP_VERSION': JSON.stringify(pkgJson.version),
'process.env.BULL_BOARD_REPO': JSON.stringify(
'https://github.com/felixmosh/bull-board/releases'
),
},
},
output: {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { NavLink } from 'react-router-dom';
import { useSelectedStatuses } from '../../hooks/useSelectedStatuses';
import { useQueues } from './../../hooks/useQueues';
import { useQueues } from '../../hooks/useQueues';
import { links } from '../../utils/links';
import { SearchIcon } from '../Icons/Search';
import s from './Menu.module.css';
Expand Down Expand Up @@ -43,7 +43,7 @@ export const Menu = () => {
className={cn(s.appVersion, s.secondary)}
target="_blank"
rel="noreferrer"
href="https://github.com/felixmosh/bull-board/releases"
href={process.env.BULL_BOARD_REPO}
>
{process.env.APP_VERSION}
</a>
Expand Down

0 comments on commit 2bdb7af

Please sign in to comment.