From becc986b5b510c5a4f0ff5d860804237e50d2f86 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Thu, 12 Oct 2023 15:19:41 -0400 Subject: [PATCH] Ok it sorta worked as a redirect, lets try a rewrite again --- vercel.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/vercel.json b/vercel.json index 601eab39d..ed8fd1b02 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" -- GitLab