From b066320af8986d43415ef9b8a15c0984e1eb8ddd Mon Sep 17 00:00:00 2001 From: 0xTranqui Date: Wed, 6 Nov 2024 13:05:30 -0500 Subject: [PATCH] logs --- apps/site/middleware.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/site/middleware.ts b/apps/site/middleware.ts index 9ed2f531..bf15ac72 100644 --- a/apps/site/middleware.ts +++ b/apps/site/middleware.ts @@ -4,10 +4,14 @@ import type { NextRequest } from 'next/server'; export function middleware(request: NextRequest) { const url = new URL(request.url); + console.log("incoming url: ", url) + // Redirect users visiting river.ph to river.site if (url.hostname === 'river.ph') { url.hostname = 'river.site'; + console.log("outgoing url: ", url) return NextResponse.redirect(url); + } // Allow the request to proceed for other domains