fix(config): redirect www subdomain to apex domain
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
354f18a56a
commit
f3af742207
1 changed files with 13 additions and 0 deletions
13
vercel.json
13
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue