Skip to content

Commit

Permalink
docs: fix preview link (zitadel#4965)
Browse files Browse the repository at this point in the history
test netlify

Co-authored-by: Livio Spring <[email protected]>
  • Loading branch information
fforootd and livio-a authored Jan 3, 2023
1 parent b1d7433 commit 83f96b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ migrations/cockroach/migrate_cloud.go
/zitadel

go.work
go.work.sum
go.work.sum
# Local Netlify folder
.netlify
18 changes: 6 additions & 12 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
[[redirects]]
from = "/docs/guides/deploy/*"
to = "/docs/self-hosting/deploy/:splat"
status = 301
force = true

[[redirects]]
from = "/docs/guides/manage/self-hosted/*"
to = "/docs/self-hosting/manage/:splat"
status = 301
force = true

# 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 = "/*"
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


0 comments on commit 83f96b4

Please sign in to comment.