Files
zitadel/docs/netlify.toml
T
Florian ForsterandGitHub 065250a108 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
2022-12-06 20:33:13 +01:00

36 lines
751 B
TOML

[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"
status = 200
force = true
[[redirects]]
from = "/proxy/api/event"
to = "https://plausible.io/api/event"
status = 202
force = true
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = '''
max-age=31536000;
includeSubDomains;
preload'''
[[redirects]]
from = "/quickstarts/introduction"
to = "/examples/introduction"
status = 301