This file contains hidden or 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, type NextRequest } from "next/server"; | |
| export async function proxy(request: NextRequest) { | |
| const userAgent = request.headers.get("user-agent"); | |
| const bots = [ | |
| "googlebot", | |
| "yahoo! slurp", | |
| "bingbot", | |
| "yandex", |
This file contains hidden or 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", |
This file contains hidden or 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 = [ | |
| // Search Engines | |
| "googlebot", | |
| "adsbot-google", | |
| "apis-google", | |
| "mediapartners-google", | |
| "google-safety", | |
| "feedfetcher-google", | |
| "googleproducer", |
This file contains hidden or 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"} |