Files
bknd/examples/astro/src/pages/admin/[...admin].astro
T
dswbx 3f26c45dd9 refactored adapters to run test suites (#126)
* refactored adapters to run test suites

* fix bun version for tests

* added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
2025-04-01 11:43:11 +02:00

21 lines
417 B
Plaintext

---
import { Admin } from "bknd/ui";
import "bknd/dist/styles.css";
import { getApi } from "../../bknd";
const api = await getApi(Astro, { verify: true });
const user = api.getUser();
export const prerender = false;
---
<html>
<body>
<Admin
withProvider={{ user }}
config={{ basepath: "/admin", theme: "dark", logo_return_path: "/../" }}
client:only
/>
</body>
</html>