From 9c8985d115b50f09b4c5732ad8275797a864d0c4 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 9 Jul 2025 07:49:17 +0200 Subject: [PATCH] redirect --- apps/web/src/middleware.ts | 5 +++++ apps/web/vercel.json | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 apps/web/vercel.json 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 - } - ] -}