feat(workflows): hide navigation and disable workflows page in production

This commit is contained in:
Gabriel Ramos 2026-06-10 17:16:51 -04:00
parent 88815f6895
commit 628faa7e24
2 changed files with 13 additions and 6 deletions

View file

@ -45,12 +45,14 @@ export default function DashboardLayout({
>
{lang === "en" ? "Interviews" : "Entrevistas"}
</Link>
<Link
href="/workflows"
className="text-sm text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-white font-medium transition-colors"
>
{lang === "en" ? "Workflows" : "Flujos de Trabajo"}
</Link>
{process.env.NODE_ENV !== "production" && (
<Link
href="/workflows"
className="text-sm text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-white font-medium transition-colors"
>
{lang === "en" ? "Workflows" : "Flujos de Trabajo"}
</Link>
)}
</nav>
</div>

View file

@ -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 || "";