From e41821b620100ea917df4f9c71be834ea91cfca4 Mon Sep 17 00:00:00 2001 From: Nathan Ong Date: Sat, 13 Jun 2026 17:23:17 -0700 Subject: [PATCH] feat: fix deadline and update redirects --- apps/site/next.config.js | 12 +----------- apps/site/src/lib/utils/hasDeadlinePassed.ts | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/site/next.config.js b/apps/site/next.config.js index 1ff4716a..8c9a40b1 100644 --- a/apps/site/next.config.js +++ b/apps/site/next.config.js @@ -20,7 +20,7 @@ const nextConfig = { permanent: false, }, { - source: "/apply-mentor", + source: "/apply/mentor", destination: "/", permanent: false, }, @@ -49,16 +49,6 @@ const nextConfig = { destination: "/", permanent: false, }, - { - source: "/mentor", - destination: "/", - permanent: false, - }, - { - source: "/incident", - destination: "/", - permanent: false, - }, ]; }, diff --git a/apps/site/src/lib/utils/hasDeadlinePassed.ts b/apps/site/src/lib/utils/hasDeadlinePassed.ts index faddda47..021e329a 100644 --- a/apps/site/src/lib/utils/hasDeadlinePassed.ts +++ b/apps/site/src/lib/utils/hasDeadlinePassed.ts @@ -2,5 +2,5 @@ export default function hasDeadlinePassed() { const deadline = new Date("2025-10-28T00:00:59"); const now = new Date(); - return false; + return deadline < now; }