redirect
This commit is contained in:
parent
7a706f3bbc
commit
9c8985d115
|
|
@ -2,6 +2,11 @@ import { NextResponse } from "next/server";
|
|||
import type { NextRequest } from "next/server";
|
||||
|
||||
export async function middleware(request: NextRequest) {
|
||||
// Handle fuckcapcut.com domain redirect
|
||||
if (request.headers.get("host") === "fuckcapcut.com") {
|
||||
return NextResponse.redirect("https://opencut.app/why-not-capcut", 301);
|
||||
}
|
||||
|
||||
const path = request.nextUrl.pathname;
|
||||
|
||||
if (path === "/editor" && process.env.NODE_ENV === "production") {
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "https://opencut.app/why-not-capcut",
|
||||
"host": "fuckcapcut.com",
|
||||
"permanent": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue