From 9099af78d789e759f9445185452126b4c870956a Mon Sep 17 00:00:00 2001 From: alma Date: Fri, 2 May 2025 16:47:55 +0200 Subject: [PATCH] auth flow --- app/api/proxy/[...path]/route.ts | 4 +++- app/artlab/page.tsx | 2 +- components/sidebar.tsx | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/api/proxy/[...path]/route.ts b/app/api/proxy/[...path]/route.ts index 9dadb016..595a209d 100644 --- a/app/api/proxy/[...path]/route.ts +++ b/app/api/proxy/[...path]/route.ts @@ -12,7 +12,9 @@ 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 || '' + 'qg': process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || '', + 'design': process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || '', + 'artlab': process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || '' }; // Check if a service is Rocket.Chat (they require special authentication) diff --git a/app/artlab/page.tsx b/app/artlab/page.tsx index 4abb16a4..756df2cf 100644 --- a/app/artlab/page.tsx +++ b/app/artlab/page.tsx @@ -14,7 +14,7 @@ export default async function ArtlabPage() {
diff --git a/components/sidebar.tsx b/components/sidebar.tsx index 0c4b41ac..f9d4d91d 100644 --- a/components/sidebar.tsx +++ b/components/sidebar.tsx @@ -169,8 +169,8 @@ export function Sidebar({ isOpen, onClose }: SidebarProps) { { title: "Artlab", icon: Palette, - href: "/design", - iframe: process.env.NEXT_PUBLIC_IFRAME_ARTLAB_URL, + href: "/artlab", + iframe: process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL, requiredRole: "expression", }, {