From f9a0f634433c17ba3da73ee30c5196b682187347 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Fri, 6 Jan 2023 23:14:39 +0100 Subject: [PATCH] ci: add redirects --- src/pages/docs/index.astro | 3 --- vercel.json | 26 ++++++++++++++++---------- 2 files changed, 16 insertions(+), 13 deletions(-) delete mode 100644 src/pages/docs/index.astro diff --git a/src/pages/docs/index.astro b/src/pages/docs/index.astro deleted file mode 100644 index 7ecae01..0000000 --- a/src/pages/docs/index.astro +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/vercel.json b/vercel.json index 92635c1..1641b29 100644 --- a/vercel.json +++ b/vercel.json @@ -1,13 +1,19 @@ { "headers": [ - { - "source": "/(.*)", - "headers" : [ - { - "key" : "Content-Security-Policy", - "value" : "img-src 'self'; font-src *; style-src 'self' 'unsafe-inline' fonts.googleapis.com; script-src 'self' 'unsafe-inline'; object-src 'none'" - } - ] - } + { + "source": "/(.*)", + "headers": [ + { + "key": "Content-Security-Policy", + "value": "img-src 'self'; font-src *; style-src 'self' 'unsafe-inline' fonts.googleapis.com; script-src 'self' 'unsafe-inline'; object-src 'none'" + } + ] + } + ], + "redirects": [ + { + "source": "/docs", + "destination": "/docs/items/nadpis/introduction" + } ] - } \ No newline at end of file +}