Skip to content

Instantly share code, notes, and snippets.

View Lasalot's full-sized avatar

Lasalot

  • Hungary
View GitHub Profile
@Lasalot
Lasalot / Proxy.js-Next16+
Last active February 2, 2026 10:17
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 January 21, 2026 14:15 — 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"}