From a9e26bb8f954dc949c1d7d35ff9cc3c527723b3f Mon Sep 17 00:00:00 2001 From: Dhravya Shah Date: Tue, 10 Feb 2026 08:47:55 -0800 Subject: [PATCH] add redirect routes --- apps/web/next.config.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 17f8dc4c..10756f88 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -33,6 +33,20 @@ const nextConfig: NextConfig = { ] }, skipTrailingSlashRedirect: true, + async redirects() { + return [ + { + source: "/new", + destination: "/", + permanent: true, + }, + { + source: "/new/:path*", + destination: "/:path*", + permanent: true, + }, + ] + }, } export default withSentryConfig(nextConfig, {