Which one do you want to be the canonical page? `domain.com`? Or `www.domain.com`?
Which one do you want to be the canonical page?
domain.com? Or www.domain.com?domain.comwww.domain.comdomain.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?
createLogger(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());
}