From af5d2e26f6179631ababbb6078e56659ac376818 Mon Sep 17 00:00:00 2001 From: Et7f3 Date: Wed, 6 May 2020 10:39:37 +0200 Subject: [PATCH 1/2] fix: Add ; charset=utf-8 to headers. fix: Add ; charset=utf-8 to headers. https://vercel.com/docs/configuration#project/headers --- now.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/now.json b/now.json index ffa5c0b3..251a1021 100644 --- a/now.json +++ b/now.json @@ -4,5 +4,29 @@ "github": { "silent": true }, + "headers": [ + { + "source": "/blog/feed.xml", + "headers" : [ + { + "key" : "Content-Type", + "value" : "application/rss+xml; charset=utf-8" + }, + { + "key" : "Cache-Control", + "value" : "public, max-age=3600" + } + ] + }, + { + "source": "/blog", + "headers" : [ + { + "key" : "Content-Type", + "value" : "text/html; charset=utf-8" + } + ] + } + ], "builds": [{ "src": "next.config.js", "use": "@now/next" }] } From 8815686241264e3cebb4cd4cb8104928ffa1c63c Mon Sep 17 00:00:00 2001 From: Et7f3 Date: Wed, 6 May 2020 11:36:32 +0200 Subject: [PATCH 2/2] fix: regex to match all path with /blog inside --- now.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/now.json b/now.json index 251a1021..85d4f8ab 100644 --- a/now.json +++ b/now.json @@ -19,7 +19,7 @@ ] }, { - "source": "/blog", + "source": "/blog/(.*)", "headers" : [ { "key" : "Content-Type",