Skip to content

Commit 1cf8635

Browse files
cursoragentmsukkari
andcommitted
fix: hide update toast for askgithub deployment
When EXPERIMENT_ASK_GH_ENABLED is true, the UpgradeToast component is no longer rendered. This is appropriate for the askgithub deployment since users are not self-hosting and don't need to be notified about new versions. Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent 8d171f6 commit 1cf8635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/app/[domain]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default async function Layout(props: LayoutProps) {
201201
{children}
202202
<SyntaxReferenceGuide />
203203
<GitHubStarToast />
204-
<UpgradeToast />
204+
{env.EXPERIMENT_ASK_GH_ENABLED !== 'true' && <UpgradeToast />}
205205
</SyntaxGuideProvider>
206206
)
207207
}

0 commit comments

Comments
 (0)