diff --git a/app/pagesweb/page.tsx b/app/pagesweb/page.tsx new file mode 100644 index 0000000..92aac31 --- /dev/null +++ b/app/pagesweb/page.tsx @@ -0,0 +1,27 @@ +import { getServerSession } from "next-auth/next"; +import { authOptions } from "@/app/api/auth/options"; +import { redirect } from "next/navigation"; +import { ResponsiveIframe } from "@/app/components/responsive-iframe"; + +export default async function Page() { + const session = await getServerSession(authOptions); + + if (!session) { + redirect("/signin"); + } + + // DEBUG: Vérifier l'URL + const iframeUrl = process.env.NEXT_PUBLIC_IFRAME_MISSIONVIEW_URL || ''; + console.log('[PAGESWEB PAGE] iframe URL:', iframeUrl); + + return ( +
+
+ +
+
+ ); +} diff --git a/components/main-nav.tsx b/components/main-nav.tsx index ab3aaeb..e2be205 100644 --- a/components/main-nav.tsx +++ b/components/main-nav.tsx @@ -207,7 +207,7 @@ export function MainNav() { { title: "Pages Web", icon: FileText, - href: '/wp-admin', + href: '/pagesweb', }, ];