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

@@ -3,7 +3,7 @@
"type": "module", "type": "module",
"sideEffects": false, "sideEffects": false,
"bin": "./dist/cli/index.js", "bin": "./dist/cli/index.js",
"version": "0.8.0-rc.10", "version": "0.8.0-rc.11",
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.", "description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, Remix, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
"homepage": "https://bknd.io", "homepage": "https://bknd.io",
"repository": { "repository": {

View File

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