From 418afa764edd1f94fbe25fa75ef682930778c915 Mon Sep 17 00:00:00 2001 From: "paperclip-resolver[bot]" <3736210+paperclip-resolver[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 15:17:56 -0400 Subject: [PATCH] fix(seo): add trailingSlash to vercel.json for edge 308 redirects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Next.js trailingSlash config only affects build output (generating en/index.html vs en.html). Vercel static hosting still serves both /en and /en/ as 200 without redirecting. Adding trailingSlash: true to vercel.json makes Vercel enforce 308 /en → /en/ at the edge, so Semrush sees a single canonical URL form. Also updates root redirect / → /en/ to avoid double redirect. --- vercel.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index d2d5177..56b4632 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "redirects": [ { "source": "/", - "destination": "/en", + "destination": "/en/", "permanent": true }, { @@ -189,5 +189,6 @@ "source": "/ingest/:path*", "destination": "https://us.i.posthog.com/:path*" } - ] + ], + "trailingSlash": true }