adjusted nextjs example theme

This commit is contained in:
dswbx
2025-02-18 20:14:08 +01:00
parent a01b99be27
commit 335fe42a22
2 changed files with 5 additions and 2 deletions

View File

@@ -19,6 +19,9 @@ export const getServerSideProps = withApi(async (context) => {
export default function AdminPage({ user }: InferProps<typeof getServerSideProps>) {
if (typeof document === "undefined") return null;
return (
<Admin withProvider={{ user }} config={{ basepath: "/admin", logo_return_path: "/../" }} />
<Admin
withProvider={{ user }}
config={{ basepath: "/admin", logo_return_path: "/../", color_scheme: "system" }}
/>
);
}