mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
improved nextjs/remix adapters and docs, confirmed remix ssr working
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
import type { PageConfig } from "next";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
export const config: PageConfig = {
|
||||
runtime: "experimental-edge"
|
||||
};
|
||||
|
||||
const Admin = dynamic(() => import("bknd/ui").then((mod) => mod.Admin), { ssr: false });
|
||||
import { adminPage, getServerSideProps } from "bknd/adapter/nextjs";
|
||||
import "bknd/dist/styles.css";
|
||||
|
||||
export default function AdminPage() {
|
||||
if (typeof document === "undefined") return null;
|
||||
return <Admin withProvider />;
|
||||
}
|
||||
export { getServerSideProps };
|
||||
export default adminPage();
|
||||
|
||||
Reference in New Issue
Block a user