Skip to content

Commit

Permalink
chore: Add middleware for redirecting to devart.terabox.tech
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ committed Aug 2, 2024
1 parent 704f3c5 commit 49ecabd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/middleware.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server';

export default function middleware(request) {
const url = new URL(request.url);
url.hostname = 'devart.terabox.tech';

return NextResponse.redirect(url.toString());
}

export const config = {
matcher: '/:path*',
};

0 comments on commit 49ecabd

Please sign in to comment.