Skip to content

Commit

Permalink
Merge pull request #179 from MiyashitaLab/fix/config_redirect
Browse files Browse the repository at this point in the history
リダイレクトがうまくいってないので修正
  • Loading branch information
HoorayTritium authored Sep 8, 2023
2 parents 61d242b + 086e3e0 commit 1959dcc
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 336 deletions.
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const nextConfig = {
},
redirects: async () => {
return [...redirects].map((item) => ({
source: item.source,
destination: encodeURIComponent(item.destination),
source: item.source.split('/').map(e=>encodeURIComponent(e)).join('/'),
destination: item.destination.split('/').map(e=>encodeURIComponent(e)).join('/'),
permanent: item.permanent,
}));
},
Expand Down
Loading

0 comments on commit 1959dcc

Please sign in to comment.