From 628faa7e2492c1b1755c006f93b6be740f1e8fbb Mon Sep 17 00:00:00 2001 From: Gabriel Ramos Date: Wed, 10 Jun 2026 17:16:51 -0400 Subject: [PATCH] feat(workflows): hide navigation and disable workflows page in production --- app/(dashboard)/layout.tsx | 14 ++++++++------ app/(dashboard)/workflows/page.tsx | 5 +++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/(dashboard)/layout.tsx b/app/(dashboard)/layout.tsx index 4af4d4b..3bab407 100644 --- a/app/(dashboard)/layout.tsx +++ b/app/(dashboard)/layout.tsx @@ -45,12 +45,14 @@ export default function DashboardLayout({ > {lang === "en" ? "Interviews" : "Entrevistas"} - - {lang === "en" ? "Workflows" : "Flujos de Trabajo"} - + {process.env.NODE_ENV !== "production" && ( + + {lang === "en" ? "Workflows" : "Flujos de Trabajo"} + + )} diff --git a/app/(dashboard)/workflows/page.tsx b/app/(dashboard)/workflows/page.tsx index bf709e5..3719a6d 100644 --- a/app/(dashboard)/workflows/page.tsx +++ b/app/(dashboard)/workflows/page.tsx @@ -2,6 +2,7 @@ import React, { useState } from "react"; import { useApp } from "@/components/AppContext"; +import { notFound } from "next/navigation"; const translations = { en: { @@ -47,6 +48,10 @@ const translations = { }; export default function WorkflowsPage() { + if (process.env.NODE_ENV === "production") { + notFound(); + } + const { lang } = useApp(); const t = translations[lang]; const webhookUrl = process.env.NEXT_PUBLIC_N8N_WEBHOOK_URL || "";