added bknd admin config override to make it easier to include <Admin />

This commit is contained in:
dswbx
2024-11-28 11:15:07 +01:00
parent 54b38401d8
commit bdc6eb55bf
14 changed files with 103 additions and 59 deletions

View File

@@ -13,6 +13,6 @@ const user = api.getUser();
<html>
<body>
<Admin withProvider={{ user }} client:load />
<Admin withProvider={{ user }} config={{ basepath: "/admin" }} client:load />
</body>
</html>

View File

@@ -2,4 +2,8 @@ import { adminPage, getServerSideProps } from "bknd/adapter/nextjs";
import "bknd/dist/styles.css";
export { getServerSideProps };
export default adminPage();
export default adminPage({
config: {
basepath: "/admin"
}
});

View File

@@ -1,4 +1,8 @@
import { adminPage } from "bknd/adapter/remix";
import "bknd/dist/styles.css";
export default adminPage();
export default adminPage({
config: {
basepath: "/admin"
}
});