refine as a subroute in nextjs app
I have an existing NextJS app with NextAuth. How can i add retool to only a sub route of /admin?
/admin, you can follow the guidance provided in the discussions from the Discord support thread. Specifically, you can wrap the pages/admin/_layout.tsx with the Refine component to apply Refine only to the admin portion of your web app. This approach allows you to leverage Refine's capabilities for your admin screens while keeping the rest of your Next.js application unchanged.pages/admin/_layout.tsx// In your app/admin/_layout.tsx or a similar file specific to your admin route
import { Refine } from "@pankod/refine-core";
export default function AdminLayout({ children }) {
return (
<Refine>
{children}
</Refine>
);
}