diff --git a/vercel.json b/vercel.json index d20228566..837b64f71 100644 --- a/vercel.json +++ b/vercel.json @@ -34,7 +34,18 @@ ], "redirects": [ { - "source": "/:path*", + "source": "/", + "has": [ + { + "type": "host", + "value": "docs.checklyhq.com" + } + ], + "destination": "https://www.checklyhq.com/docs/", + "permanent": true + }, + { + "source": "/docs/:path*", "has": [ { "type": "host", @@ -44,6 +55,28 @@ "destination": "https://www.checklyhq.com/docs/:path*", "permanent": true }, + { + "source": "/learn/:path*", + "has": [ + { + "type": "host", + "value": "docs.checklyhq.com" + } + ], + "destination": "https://www.checklyhq.com/learn/:path*", + "permanent": true + }, + { + "source": "/guides/:path*", + "has": [ + { + "type": "host", + "value": "docs.checklyhq.com" + } + ], + "destination": "https://www.checklyhq.com/guides/:path*", + "permanent": true + }, { "source": "/learn/headless/avoiding-hard-waits(/)?", "destination": "/learn/playwright/waits-and-timeouts", "permanent": true }, { "source": "/learn/headless/basics-clicking-typing(/)?", "destination": "/learn/playwright/clicking-typing-hovering", "permanent": true }, { "source": "/learn/headless/basics-debugging(/)?", "destination": "/learn/playwright/debugging/", "permanent": true },