From 25490b22239c4a40b5b0bb4bda5ab4bf8041d1fe Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 11 Apr 2026 08:17:59 +0100 Subject: [PATCH] feat(cloud): temporarily disable context menu --- apps/web/src/views/board/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/views/board/index.tsx b/apps/web/src/views/board/index.tsx index de0841e3..8d25696a 100644 --- a/apps/web/src/views/board/index.tsx +++ b/apps/web/src/views/board/index.tsx @@ -2,6 +2,7 @@ import type { DropResult } from "react-beautiful-dnd"; import Link from "next/link"; import { useParams } from "next/navigation"; import { useRouter } from "next/router"; +import { env } from "next-runtime-env"; import { t } from "@lingui/core/macro"; import { keepPreviousData } from "@tanstack/react-query"; import { useEffect, useState } from "react"; @@ -725,7 +726,9 @@ export default function BoardPage({ isTemplate }: { isTemplate?: boolean }) { if ( card.publicId.startsWith( "PLACEHOLDER", - ) + ) || + env("NEXT_PUBLIC_KAN_ENV") === + "cloud" ) return; e.preventDefault();