chore: conditionally show about and notice based on env var (#358)

This commit is contained in:
Dayuan Jiang
2025-12-23 00:32:22 +09:00
committed by GitHub
parent 6446454cd7
commit 3521495ead

View File

@@ -1269,32 +1269,36 @@ Continue from EXACTLY where you stopped.`,
Next AI Drawio Next AI Drawio
</h1> </h1>
</div> </div>
{!isMobile && ( {!isMobile &&
<Link process.env.NEXT_PUBLIC_SHOW_ABOUT_AND_NOTICE ===
href="/about" "true" && (
target="_blank" <Link
rel="noopener noreferrer" href="/about"
className="text-sm text-muted-foreground hover:text-foreground transition-colors ml-2" target="_blank"
> rel="noopener noreferrer"
About className="text-sm text-muted-foreground hover:text-foreground transition-colors ml-2"
</Link>
)}
{!isMobile && (
<Link
href="/about"
target="_blank"
rel="noopener noreferrer"
>
<ButtonWithTooltip
tooltipContent="Due to high usage, I have changed the model to minimax-m2 and added some usage limits. See About page for details."
variant="ghost"
size="icon"
className="h-6 w-6 text-amber-500 hover:text-amber-600"
> >
<AlertTriangle className="h-4 w-4" /> About
</ButtonWithTooltip> </Link>
</Link> )}
)} {!isMobile &&
process.env.NEXT_PUBLIC_SHOW_ABOUT_AND_NOTICE ===
"true" && (
<Link
href="/about"
target="_blank"
rel="noopener noreferrer"
>
<ButtonWithTooltip
tooltipContent="Due to high usage, I have changed the model to minimax-m2 and added some usage limits. See About page for details."
variant="ghost"
size="icon"
className="h-6 w-6 text-amber-500 hover:text-amber-600"
>
<AlertTriangle className="h-4 w-4" />
</ButtonWithTooltip>
</Link>
)}
</div> </div>
<div className="flex items-center gap-1 justify-end overflow-visible"> <div className="flex items-center gap-1 justify-end overflow-visible">
<ButtonWithTooltip <ButtonWithTooltip