diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts index d20c4b1..bdce5cc 100644 --- a/apps/web/src/middleware.ts +++ b/apps/web/src/middleware.ts @@ -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") { diff --git a/apps/web/vercel.json b/apps/web/vercel.json deleted file mode 100644 index 53bca33..0000000 --- a/apps/web/vercel.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "redirects": [ - { - "source": "/(.*)", - "destination": "https://opencut.app/why-not-capcut", - "host": "fuckcapcut.com", - "permanent": true - } - ] -}