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