From f9e3883fcd3591b197fc84c20b4e08c22be19143 Mon Sep 17 00:00:00 2001 From: Edd Date: Wed, 25 Oct 2023 18:50:01 +0100 Subject: [PATCH] switch to cookie --- vercel.json | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/vercel.json b/vercel.json index 85bd80ca..2180cc2e 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ }, "redirects": [ { - "source": "/:path((?!restricted|assets).*)", + "source": "/:path((?!restricted|static).*)", "has": [ { "type": "header", @@ -17,16 +17,15 @@ ], "missing": [ { - "type": "header", - "key": "User-Agent", - "value": ".*HeadlessChrome.*" + "type": "cookie", + "key": "skip-geo-redirect" } ], "permanent": false, "destination": "/restricted" }, { - "source": "/:path((?!restricted|assets).*)", + "source": "/:path((?!restricted|static).*)", "has": [ { "type": "header", @@ -36,16 +35,15 @@ ], "missing": [ { - "type": "header", - "key": "User-Agent", - "value": ".*HeadlessChrome.*" + "type": "cookie", + "key": "skip-geo-redirect" } ], "permanent": false, "destination": "/restricted" }, { - "source": "/:path((?!restricted|assets).*)", + "source": "/:path((?!restricted|static).*)", "has": [ { "type": "header", @@ -55,16 +53,15 @@ ], "missing": [ { - "type": "header", - "key": "User-Agent", - "value": ".*HeadlessChrome.*" + "type": "cookie", + "key": "skip-geo-redirect" } ], "permanent": false, "destination": "/restricted" }, { - "source": "/:path((?!restricted|assets).*)", + "source": "/:path((?!restricted|static).*)", "has": [ { "type": "header", @@ -74,16 +71,15 @@ ], "missing": [ { - "type": "header", - "key": "User-Agent", - "value": ".*HeadlessChrome.*" + "type": "cookie", + "key": "skip-geo-redirect" } ], "permanent": false, "destination": "/restricted" }, { - "source": "/:path((?!restricted).*)", + "source": "/:path((?!restricted|static).*)", "has": [ { "type": "header", @@ -93,9 +89,8 @@ ], "missing": [ { - "type": "header", - "key": "User-Agent", - "value": ".*HeadlessChrome.*" + "type": "cookie", + "key": "skip-geo-redirect" } ], "permanent": false,