- 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>
39 lines
691 B
JSON
39 lines
691 B
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"git": {
|
|
"deploymentEnabled": {
|
|
"main": true
|
|
}
|
|
},
|
|
"github": {
|
|
"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",
|
|
"schedule": "*/2 * * * *"
|
|
},
|
|
{
|
|
"path": "/api/sync/keyword",
|
|
"schedule": "*/15 * * * *"
|
|
},
|
|
{
|
|
"path": "/api/sync/metrics",
|
|
"schedule": "0 * * * *"
|
|
}
|
|
]
|
|
}
|