fix(vercel): limit /a/:naddr rewrite to bots

This commit is contained in:
Gigi
2025-10-16 19:16:29 +02:00
parent bd1afc54c3
commit 48048f877a

View File

@@ -2,6 +2,13 @@
"rewrites": [
{
"source": "/a/:naddr",
"has": [
{
"type": "header",
"key": "user-agent",
"value": ".*(bot|crawl|spider|slurp|facebook|twitter|linkedin|whatsapp|telegram|slack|discord|preview).*"
}
],
"destination": "/api/article-og?naddr=:naddr"
},
{