Skip to content

Commit

Permalink
fix undefined process.env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3yne committed May 14, 2024
1 parent 699450b commit 1bb9eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/app/login/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const LoginPage = () => {
<CardContent className={`twc-p-12`}>
<Box className={`twc-mb-8 twc-flex twc-items-center twc-justify-center`}>
<Image
src={`${process.env.NEXT_PUBLIC_BASE_PATH}/icons/gravitino.svg`}
src={`${process.env.NEXT_PUBLIC_BASE_PATH ?? ''}/icons/gravitino.svg`}
width={24}
height={24}
alt='logo'
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/rootLayout/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const AppBar = () => {
>
<Link href='/metalakes' className={'twc-flex twc-items-center twc-no-underline twc-mr-8'}>
<Image
src={process.env.NEXT_PUBLIC_BASE_PATH + '/icons/gravitino.svg'}
src={process.env.NEXT_PUBLIC_BASE_PATH ?? '' + '/icons/gravitino.svg'}
width={32}
height={32}
alt='logo'
Expand Down

0 comments on commit 1bb9eb4

Please sign in to comment.