From f3af7422074a803cd9bbbb169d951ad78abf63b0 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 28 Nov 2025 05:13:55 +1000 Subject: [PATCH] fix(config): redirect www subdomain to apex domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add redirect rule in vercel.json to redirect www.tpmjs.com → tpmjs.com - Use permanent (301) redirect for SEO benefits - Preserves all paths and query parameters with /:path* pattern - Ensures canonical URL is always non-www 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- vercel.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vercel.json b/vercel.json index 2eb65e2..1d17e66 100644 --- a/vercel.json +++ b/vercel.json @@ -9,6 +9,19 @@ "silent": false, "autoJobCancelation": true }, + "redirects": [ + { + "source": "/:path*", + "has": [ + { + "type": "host", + "value": "www.tpmjs.com" + } + ], + "destination": "https://tpmjs.com/:path*", + "permanent": true + } + ], "crons": [ { "path": "/api/sync/changes",