From e384cdd87972d02ef2d655ed5037744ffb494a77 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 4 May 2025 22:53:42 +0200 Subject: [PATCH] livres --- app/livres/page.tsx | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app/livres/page.tsx b/app/livres/page.tsx index 461c3271..ab35de5e 100644 --- a/app/livres/page.tsx +++ b/app/livres/page.tsx @@ -9,12 +9,31 @@ export default async function LivresPage() { if (!session) { redirect("/signin"); } + + // Get the iframe URL from environment variables + const iframeUrl = process.env.NEXT_PUBLIC_IFRAME_LIVRE_URL || ''; + + // If no URL is set, show an error + if (!iframeUrl) { + return ( +
+
+
+

Configuration Error

+

+ NEXT_PUBLIC_IFRAME_LIVRE_URL environment variable is not set. +

+
+
+
+ ); + } return ( -
+