This commit is contained in:
Maze Winther
2025-07-09 07:49:17 +02:00
parent 7a706f3bbc
commit 9c8985d115
2 changed files with 5 additions and 10 deletions

View File

@ -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") {

View File

@ -1,10 +0,0 @@
{
"redirects": [
{
"source": "/(.*)",
"destination": "https://opencut.app/why-not-capcut",
"host": "fuckcapcut.com",
"permanent": true
}
]
}