28 lines
800 B
TypeScript
28 lines
800 B
TypeScript
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 ArtlabPage() {
|
|
const session = await getServerSession(authOptions);
|
|
|
|
if (!session) {
|
|
redirect("/signin");
|
|
}
|
|
|
|
// Get the design URL from environment variable - intentionally shares URL with design section
|
|
const designIframeUrl = process.env.NEXT_PUBLIC_IFRAME_DESIGN_URL || '';
|
|
|
|
return (
|
|
<main className="w-full h-screen bg-black">
|
|
<div className="w-full h-full px-4 pt-12 pb-4">
|
|
<ResponsiveIframe
|
|
src={designIframeUrl}
|
|
allowFullScreen={true}
|
|
/>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|
|
|