• A utility function that protects a page that is only for site administrators. If they're not an admin, it pretends the page doesn't exist.

    Parameters

    Returns {} | {
        notFound: true;
    }

    An object that is able to extend the GetServerSidePropsResult to include a redirect if necessary