Skip to content

Commit

Permalink
fix: add IS_CANARY flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Oct 11, 2024
1 parent 387617e commit b34880a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/staking/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { getTranslations } from 'next-intl/server';

export default async function Header() {
const dictionary = await getTranslations('navigation');
const isCanary = process.env.NEXT_PUBLIC_IS_CANARY?.toLowerCase() === 'true';

const routes: typeof ROUTES = [];
ROUTES.forEach(({ dictionaryKey, href }) => {
Expand All @@ -27,7 +28,7 @@ export default async function Header() {
<div className={cn('flex flex-row gap-10 pr-4')}>
<Link href="/" className="relative">
<Image src="/images/logo.png" alt="Session Token Logo" width={144} height={50} />
<span className="absolute -top-4 left-1 h-max w-max text-sm">🐤</span>
{isCanary ? <span className="absolute -top-4 left-1 h-max w-max text-sm">🐤</span> : null}
</Link>
<div className="hidden flex-row gap-10 lg:flex">
{routes.map(({ dictionaryKey, href }) => (
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
],
"env": [
"NO_MINIFY",
"NEXT_PUBLIC_IS_CANARY",
"NEXT_PUBLIC_HIDE_FAUCET",
"NEXT_PUBLIC_SENT_STAKING_API_URL",
"NEXT_PUBLIC_SENT_EXPLORER_API_URL",
Expand Down

0 comments on commit b34880a

Please sign in to comment.