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