Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Use redirect rather than rewrite (#2177)

Luke Vella195877a38de4
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index d5c6ec50b..e0ee42db6 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -74,17 +74,15 @@ const nextConfig: NextConfig = {
destination: "/api/better-auth/callback/microsoft",
permanent: false,
},
- ];
- },
- async rewrites() {
- return [
{
source: "/p/:participantUrlId",
destination: "/api/legacy/p/:participantUrlId",
+ permanent: true,
},
{
source: "/admin/:adminUrlId",
destination: "/api/legacy/admin/:adminUrlId",
+ permanent: true,
},
];
},