diff --git a/next.config.ts b/next.config.ts index f0d9ca8..cd6c0be 100644 --- a/next.config.ts +++ b/next.config.ts @@ -9,6 +9,16 @@ const nextConfig: NextConfig = { }, ], }, + // /explorer is an obvious typo / synonym for the canonical /explore + // route. Send it (and every nested path under it) to the matching + // /explore URL so deep links keep working when someone fat-fingers + // or copies from a referrer that included the "r". + async redirects() { + return [ + { source: '/explorer', destination: '/explore', permanent: true }, + { source: '/explorer/:path*', destination: '/explore/:path*', permanent: true }, + ]; + }, }; export default nextConfig;