fix(admin): persist data directory and pass env vars

This commit is contained in:
Schubert Ferenc 2026-07-03 22:25:04 +02:00
parent 99e8201745
commit 1d7e7c41c9
39 changed files with 1297 additions and 32 deletions

21
components/SiteFrame.tsx Normal file
View file

@ -0,0 +1,21 @@
"use client";
import { usePathname } from "next/navigation";
import type { ReactNode } from "react";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
export default function SiteFrame({ children }: { children: ReactNode }) {
const pathname = usePathname();
const isAdmin = pathname.startsWith("/admin");
if (isAdmin) return <>{children}</>;
return (
<>
<Header />
<main>{children}</main>
<Footer />
</>
);
}