From 8f8075851eb26a965960ab4208c2d8bdd7c24727 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 13 Feb 2023 18:28:35 +0100 Subject: [PATCH] chore: use vercel instead of netlify for the docs page (#5211) --- docs/netlify.toml | 21 --------------------- docs/vercel.json | 8 ++++++++ 2 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 docs/netlify.toml create mode 100644 docs/vercel.json diff --git a/docs/netlify.toml b/docs/netlify.toml deleted file mode 100644 index c19c5d980b..0000000000 --- a/docs/netlify.toml +++ /dev/null @@ -1,21 +0,0 @@ -# This is a workaround to address the problem around the baseUrl from docusaurus -# Be aware that this prevents the usage of the path /docs/docs -[[redirects]] - from = "/docs/*" - to = "/:splat" - status = 200 - force = true - -[[redirects]] - from = "/" - to = "/docs" - status = 302 - force = true - -[[headers]] - for = "/*" - [headers.values] - Strict-Transport-Security = ''' - max-age=31536000; - includeSubDomains; - preload''' diff --git a/docs/vercel.json b/docs/vercel.json new file mode 100644 index 0000000000..d1aa4cc7a8 --- /dev/null +++ b/docs/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { "source": "/docs/:match*", "destination": "/:match*" } + ], + "redirects": [ + { "source": "/", "destination": "/docs" } + ] +} \ No newline at end of file