diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index b81a529e..2dc1195e 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -15,11 +15,11 @@ const menuItems: Record = { dossiers: process.env.NEXT_PUBLIC_IFRAME_DRIVE_URL || '', 'the-message': process.env.NEXT_PUBLIC_IFRAME_THEMESSAGE_URL || '', qg: process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || '', - // Keep any existing custom ones, but use environment variables when available + // Keep any existing custom ones board: "https://example.com/board", chapter: "https://example.com/chapter", flow: "https://example.com/flow", - design: process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || "https://example.com/design", + design: "https://example.com/design", gitlab: "https://gitlab.com", missions: "https://example.com/missions" } diff --git a/app/api/proxy/[...path]/route.ts b/app/api/proxy/[...path]/route.ts index e0d83a77..9dadb016 100644 --- a/app/api/proxy/[...path]/route.ts +++ b/app/api/proxy/[...path]/route.ts @@ -12,8 +12,7 @@ const SERVICE_URLS: Record = { 'agilite': process.env.NEXT_PUBLIC_IFRAME_AGILITY_URL || '', 'dossiers': process.env.NEXT_PUBLIC_IFRAME_DRIVE_URL || '', 'the-message': process.env.NEXT_PUBLIC_IFRAME_THEMESSAGE_URL || '', - 'qg': process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || '', - 'design': process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || 'https://example.com/design' + 'qg': process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || '' }; // Check if a service is Rocket.Chat (they require special authentication) diff --git a/app/design/page.tsx b/app/design/page.tsx deleted file mode 100644 index 336113d2..00000000 --- a/app/design/page.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -import { redirect } from "next/navigation"; -import { ResponsiveIframe } from "@/app/components/responsive-iframe"; - -export default async function DesignPage() { - const session = await getServerSession(authOptions); - - if (!session) { - redirect("/signin"); - } - - // Use environment variable directly or via proxy - const designUrl = process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || ''; - - // Choose between direct URL or proxy - uncomment the one you want to use - // const finalUrl = designUrl; // Direct URL - const finalUrl = `/api/proxy/design`; // Proxy URL - - return ( -
-
- -
-
- ); -} \ No newline at end of file