Display page in nextjs server side

I’m using Next.JS 14, I want to show a page to the client if the request is coming from a browser but if it’s not from a browser redirect to another website.
Base on this code section I’ve done the redirect part but there isn’t any documentation for showing the page.
I’d appreciate if you can help me out how to show the page.
Thanks.

// for GET method 
export async function GET(request) {
    const headersList = headers();
    if(!headersList.get("Accept").includes("text/html")) {
        return NextResponse.redirect("https://example.com");
    }
    
    return Page(); //LAYOUT
}