add redirect routes

This commit is contained in:
Dhravya Shah 2026-02-10 08:47:55 -08:00
parent a843edde5e
commit a9e26bb8f9

View file

@ -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, {