mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-17 16:41:42 +00:00
Fix: redirect only 6 letter alpha-numerics IDs
This commit is contained in:
@@ -3,7 +3,7 @@ const nextConfig = {
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: "/:id",
|
||||
source: "/:id([a-zA-Z0-9]{6})", // Match only 6-character IDs
|
||||
destination: `/api/redirect/:id`,
|
||||
permanent: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user