chore(docs): fix links for domain migration (#4831)

* chore(docs): fix links for domain migration

* try trailing slash for netlify

* trial

* fix typo

* test path

* try preview proxied

* test local proxy

* try to define the domain with redirect to /docs

* remove build commands

* debug netlify router and fix image link

* working config

* fix analytics
This commit is contained in:
Florian Forster
2022-12-06 20:33:13 +01:00
committed by GitHub
parent 3539418a4a
commit 065250a108
49 changed files with 210 additions and 201 deletions
+10 -2
View File
@@ -1,6 +1,14 @@
[build]
command = "npm run build"
# 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 = "/proxy/js/script.js"
to = "https://plausible.io/js/script.outbound-links.js"
@@ -22,6 +30,6 @@
preload'''
[[redirects]]
from = "/docs/quickstarts/introduction"
to = "/docs/examples/introduction"
from = "/quickstarts/introduction"
to = "/examples/introduction"
status = 301