mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
added bknd admin config override to make it easier to include <Admin />
This commit is contained in:
@@ -38,7 +38,9 @@ import { adminPage, getServerSideProps } from "bknd/adapter/nextjs";
|
||||
import "bknd/dist/styles.css";
|
||||
|
||||
export { getServerSideProps };
|
||||
export default adminPage();
|
||||
export default adminPage({
|
||||
config: { basepath: "/admin" }
|
||||
});
|
||||
```
|
||||
|
||||
## Example usage of the API in pages dir
|
||||
|
||||
@@ -81,7 +81,9 @@ Create a new splat route file at `app/routes/admin.$.tsx`:
|
||||
import { adminPage } from "bknd/adapter/remix";
|
||||
import "bknd/dist/styles.css";
|
||||
|
||||
export default adminPage();
|
||||
export default adminPage({
|
||||
config: { basepath: "/admin" }
|
||||
});
|
||||
```
|
||||
|
||||
## Example usage of the API
|
||||
|
||||
Reference in New Issue
Block a user