This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextResponse } from "next/server"; | |
export async function middleware(request) { | |
const userAgent = request.headers.get("user-agent"); | |
const bots = [ | |
"googlebot", | |
"yahoo! slurp", | |
"bingbot", | |
"yandex", | |
"baiduspider", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User agents handled by Prerender | |
const BOT_AGENTS = [ | |
"googlebot", | |
"yahoo! slurp", | |
"bingbot", | |
"yandex", | |
"baiduspider", | |
"facebookexternalhit", | |
"twitterbot", | |
"rogerbot", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-02-28T13:17:33.089Z","extensionVersion":"v3.4.3"} |