authentik/website/netlify.toml

53 lines
1.1 KiB
TOML

[[redirects]]
from = "/blog/*"
to = "https://goauthentik.io/blog/:splat"
# Migration from docs to separate directory
[[redirects]]
from = "/docs/integrations/*"
to = "/integrations/:splat"
# Docusaurus update removes index
[[redirects]]
from = "/docs/:firstPart/index"
to = "/docs/:firstPart/"
status = 301
force = true
[[redirects]]
from = "/docs/:firstPart/:secondPart/index"
to = "/docs/:firstPart/:secondPart/"
status = 301
force = true
[[redirects]]
from = "/integrations/:firstPart/index"
to = "/integrations/:firstPart/"
status = 301
force = true
[[redirects]]
from = "/integrations/:firstPart/:secondPart/index"
to = "/integrations/:firstPart/:secondPart/"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
[dev]
command = "npm run watch"
targetPort = 3000
publish = "build"
# Moving doc files
[[redirects]]
from = "/docs/core/applications"
to = "/docs/applications"
status = 302
# Moved Sources from Integrations to Docs
[[redirects]]
from = "/integrations/sources/*"
to = "/docs/sources/:splat"
status = 302