Skip to content

Instantly share code, notes, and snippets.

View Lasalot's full-sized avatar

Lasalot

  • Hungary
View GitHub Profile
// User agents handled by Prerender
const BOT_AGENTS = [
"googlebot","yahoo! slurp","bingbot","yandex","baiduspider","facebookexternalhit",
"twitterbot","rogerbot","linkedinbot","embedly","quora link preview","showyoubot",
"outbrain","pinterest/0.","developers.google.com/+/web/snippet","slackbot","vkshare",
"w3c_validator","redditbot","applebot","whatsapp","flipboard","tumblr","bitlybot",
"skypeuripreview","nuzzel","discordbot","google page speed","qwantify","pinterestbot",
"bitrix link preview","xing-contenttabreceiver","chrome-lighthouse","telegrambot",
"oai-searchbot","chatgpt","gptbot","claudebot","amazonbot","perplexity",
"google-inspectiontool","integration-test",
@Lasalot
Lasalot / Proxy.js-Next16+
Last active February 17, 2026 12:23
Proxy.js | Next.js 16+ integration for Prerender.io
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",
@Lasalot
Lasalot / middleware.js
Last active January 6, 2026 13:52
NextJS Middleware.js
import { NextResponse } from "next/server";
export async function middleware(request) {
const userAgent = request.headers.get("user-agent");
const bots = [
"googlebot",
"yahoo! slurp",
"bingbot",
@Lasalot
Lasalot / prerender.worker.js
Last active March 25, 2026 11:26 — forked from hisorange/prerender.worker.js
Prerender New Worker
// User agents handled by Prerender
const BOT_AGENTS = [
// Search Engines
"googlebot",
"adsbot-google",
"apis-google",
"mediapartners-google",
"google-safety",
"feedfetcher-google",
"googleproducer",
@Lasalot
Lasalot / cloudSettings
Last active September 23, 2020 11:04 — forked from TakiL/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-28T13:17:33.089Z","extensionVersion":"v3.4.3"}