diff --git a/src/middleware.js b/src/middleware.js index 5c22475..2431101 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -2,7 +2,12 @@ import { NextResponse } from 'next/server'; export default function middleware(request) { const url = new URL(request.url); + // Change the hostname to devart.terabox.tech url.hostname = 'devart.terabox.tech'; + url.port="" + + // Optional: Add logging for debugging + console.log(`Redirecting to: ${url.toString()}`); return NextResponse.redirect(url.toString()); }