feat: add a redirect for old /r/ urls

This commit is contained in:
diced
2025-02-16 22:11:40 -08:00
parent ce7ebcbe27
commit e1905c7fb3

View File

@@ -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 };