From e1905c7fb394b2342001cee6f5c1dd37c9e2d2f4 Mon Sep 17 00:00:00 2001 From: diced Date: Sun, 16 Feb 2025 22:11:40 -0800 Subject: [PATCH] feat: add a redirect for old /r/ urls --- next.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/next.config.js b/next.config.js index a64074fe..ed42c49f 100755 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,13 @@ const nextConfig = { destination: '/auth/register?code=:code', }, ], + redirects: async () => [ + { + source: '/r/:id', + destination: '/raw/:id', + permanent: true, + }, + ], webpack: (config) => { config.resolve.fallback = { worker_threads: false };