diff --git a/vercel.json b/vercel.json index 689907fb00815e7f53896edc5bbea97934f6c7a2..601eab39d3210da7229eb5f43c69bfc2f9a98bc2 100644 --- a/vercel.json +++ b/vercel.json @@ -2,6 +2,11 @@ "public": true, "framework": "hugo", "redirects": [ + { + "source": "/news/(.*)/", + + "destination": "/news/$1/status.ajson" + }, { "source": "/amp/(.+)/", "destination": "/$1/" @@ -17,17 +22,6 @@ { "source": "/activitypub-support-added/", "destination": "/news/activitypub-support-added/" - }, - { - "source": "/news/:pathPage/", - "has": [ - { - "type": "header", - "key": "Accept", - "value": "application/activity+json" - } - ], - "destination": "/news/:pathPage/status.ajson" } ], "rewrites": [