improved nextjs/remix adapters and docs, confirmed remix ssr working

This commit is contained in:
dswbx
2024-11-26 11:15:38 +01:00
parent eea76ebc28
commit 9d896a6ab1
23 changed files with 275 additions and 209 deletions

View File

@@ -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();