From 680919495b5662bd3b2e73527392e2ba0a4c8d56 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 10 Nov 2022 17:39:11 +0100 Subject: infra: update website redirects (next) (#1523) --- netlify.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/netlify.toml b/netlify.toml index 02730842..28fcee02 100644 --- a/netlify.toml +++ b/netlify.toml @@ -6,6 +6,20 @@ publish = "docs/.vitepress/dist" command = "pnpm docs:build:ci" +# Alias for the main page +[[redirects]] + from = "https://v8.fakerjs.dev" + to = "https://fakerjs.dev" + status = 302 + force = true + +# Alias for the next page +[[redirects]] + from = "https://v9.fakerjs.dev" + to = "https://next.fakerjs.dev" + status = 302 + force = true + # Redirect to Discord server [[redirects]] from = "https://chat.fakerjs.dev" @@ -13,7 +27,19 @@ status = 301 force = true +[[redirects]] + from = "/chat" + to = "https://discord.gg/faker-js" + status = 301 + force = true + # Redirect to StackBlitz playground +[[redirects]] + from = "https://new.fakerjs.dev" + to = "https://stackblitz.com/edit/faker-js-demo?file=index.ts" + status = 301 + force = true + [[redirects]] from = "/new" to = "https://stackblitz.com/edit/faker-js-demo?file=index.ts" -- cgit v1.2.3