domain.com100::, then create a bulk-redirect rule that redirects from www.domain.com to domain.com like so:



createLogger(request) to access it)next-on-pages, but does Middleware have some way of passing data around?
100::www.domain.comcreateLogger(request)export function middleware(request: NextRequest) {
const rayId =
request.headers.get("CF-Ray") ??
Math.floor(Math.random() * 10000).toString();
return als.run(rayId, () => NextResponse.next());
}