Skip to content

Commit

Permalink
Merge pull request #182 from MiyashitaLab/fix/redirect
Browse files Browse the repository at this point in the history
リダイレクト設定の修正
  • Loading branch information
HoorayTritium committed Sep 13, 2023
2 parents a109eb1 + ab8f0ac commit e1579bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
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].map((item) => ({
return [...redirects].filter(e=>e.source==e.destination).map((item) => ({

This comment has been minimized.

Copy link
@elecdeer

elecdeer Sep 13, 2023

Contributor

@HoorayTritium
e => e.source !== e.destinationにしないといけない気がします...?

This comment has been minimized.

Copy link
@HoorayTritium

HoorayTritium Sep 13, 2023

Author Contributor

すみません、確認不足でしたm(_ _)m

source: encodeRedirectURL(item.source),
destination: encodeRedirectURL(item.destination),
permanent: item.permanent,
Expand Down
5 changes: 0 additions & 5 deletions redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,6 @@
"destination": "/members/FunakawaRisa",
"permanent": true
},
{
"source": "/members/kim-minji",
"destination": "/members/kim-minji",
"permanent": true
},
{
"source": "/members/五十嵐-えり",
"destination": "/members/igarashi-eri",
Expand Down

0 comments on commit e1579bb

Please sign in to comment.