Skip to content

Commit

Permalink
Merge pull request #183 from MiyashitaLab/fix/redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
elecdeer committed Sep 14, 2023
2 parents e1579bb + 6022c5e commit be096e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const nextConfig = {
]
},
redirects: async () => {
return [...redirects].filter(e=>e.source==e.destination).map((item) => ({
return [...redirects].filter(e=>e.source!==e.destination).map((item) => ({
source: encodeRedirectURL(item.source),
destination: encodeRedirectURL(item.destination),
permanent: item.permanent,
Expand Down

0 comments on commit be096e0

Please sign in to comment.