Next.js Discord

Discord Forum

How to use `BotID` to protect a page?

Unanswered
AM posted this in #help-forum
Open in Discord
AMOP
I have a page with server root etc:

export default function AirdropPage() {
  return (
    <div className="w-full flex flex-col gap-5">
          {...components}
    </div>
  );
}

This is the page.tsx which is server inside we have client compoents.

I want to protect this page with BotID, is it enough adding to protected routes ( using next < 15.3.0 ) or there is something else we need to do on the page it self

1 Reply