Skip to content

Commit

Permalink
chore: Update middleware to redirect to devart.terabox.tech
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ committed Aug 4, 2024
1 parent 49ecabd commit fb3d0b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit fb3d0b4

Please sign in to comment.