notifications big
This commit is contained in:
parent
88c3db795d
commit
25427fea1b
27
app/pagesweb/page.tsx
Normal file
27
app/pagesweb/page.tsx
Normal file
@ -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 (
|
||||
<main className="w-full h-screen bg-black">
|
||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||
<ResponsiveIframe
|
||||
src={iframeUrl}
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@ -207,7 +207,7 @@ export function MainNav() {
|
||||
{
|
||||
title: "Pages Web",
|
||||
icon: FileText,
|
||||
href: '/wp-admin',
|
||||
href: '/pagesweb',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user