From 2af63b8391ef50d1467dbb9392df603609ed5003 Mon Sep 17 00:00:00 2001 From: Mohit Sapat Date: Wed, 28 Oct 2026 23:28:34 +0530 Subject: [PATCH 1/2] fix: redirect removed formatter docs to the components overview --- next.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.ts b/next.config.ts index 5550009..c3edc65 100644 --- a/next.config.ts +++ b/next.config.ts @@ -7,6 +7,9 @@ const nextConfig: NextConfig = { return [ // There is no docs index page; the footer and navbar link to /docs. { source: "/docs", destination: "/docs/getting-started", permanent: true }, + // The formatters (LocaleNumber, RelativeTime) were removed in #72; their old + // docs URLs are still known to search engines. + { source: "/docs/components/formatters/:path*", destination: "/docs/components", permanent: true }, ]; }, }; From 34bb561e044ff8be2c4f2d6b51fe668ac136cbe3 Mon Sep 17 00:00:00 2001 From: Mohit Sapat Date: Wed, 28 Oct 2026 23:42:48 +0530 Subject: [PATCH 2/2] style: format the formatters redirect --- next.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index c3edc65..206c776 100644 --- a/next.config.ts +++ b/next.config.ts @@ -9,7 +9,11 @@ const nextConfig: NextConfig = { { source: "/docs", destination: "/docs/getting-started", permanent: true }, // The formatters (LocaleNumber, RelativeTime) were removed in #72; their old // docs URLs are still known to search engines. - { source: "/docs/components/formatters/:path*", destination: "/docs/components", permanent: true }, + { + source: "/docs/components/formatters/:path*", + destination: "/docs/components", + permanent: true, + }, ]; }, };