fix(integrations): gate mock integration server-side

This commit is contained in:
ajnart committed 2026-09-06 09:47:35 +02:00
1 parent 35155b18b9
commit 4ab9f25274
6 files changed
+44 -12

No files matched your search

@@ -47,6 +47,9 @@ export default async function IntegrationsNewPage(props: NewIntegrationPageProps
const tCreate = await getI18n("integration.page.create");
const currentKind = result.data;
if (currentKind === "mock" && !env.UNSAFE_ENABLE_MOCK_INTEGRATION) {
notFound();
}
return (
<>