chore: use vercel instead of netlify for the docs page (#5211)

This commit is contained in:
Florian Forster 2023-02-13 18:28:35 +01:00 committed by GitHub
parent d050e9cd27
commit 8f8075851e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 21 deletions

View File

@ -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'''

8
docs/vercel.json Normal file
View File

@ -0,0 +1,8 @@
{
"rewrites": [
{ "source": "/docs/:match*", "destination": "/:match*" }
],
"redirects": [
{ "source": "/", "destination": "/docs" }
]
}