diff --git a/next.config.js b/next.config.js index 1c289bd..252c3e3 100644 --- a/next.config.js +++ b/next.config.js @@ -2,4 +2,18 @@ module.exports = { env: { PUBLIC_URL: "", }, + async redirects() { + return [ + { + source: "/user/:userId/closet", + destination: "/user/:userId/lists", + permanent: true, + }, + { + source: "/user/:userId/items", + destination: "/user/:userId/lists", + permanent: true, + }, + ]; + }, }; diff --git a/vercel.json b/vercel.json index bb1976f..69b26d9 100644 --- a/vercel.json +++ b/vercel.json @@ -1,10 +1,5 @@ { "routes": [ - { - "src": "/user/(?[^/]+)/(closet|items)", - "status": 308, - "headers": { "Location": "/user/$userId/lists" } - }, { "src": "/outfits/(?[^/]+)/(?150|300|600)\\.png", "dest": "/api/outfitImage.js?size=$size&id=$id"