Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Jan 23, 2024
1 parent 7327583 commit f3f29da
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ module.exports = {
});
const byName = chains.map((chain) => {
return {
source: `/${chain.name.toLowerCase().replace(" ", "-")}`,
source: `/${chain.name
.toLowerCase()
.replace(" ", "-")
.replace(":", "-")}`,
destination: `/?network=${chain.chainId}`,
permanent: true,
};
Expand All @@ -25,7 +28,10 @@ module.exports = {
.filter((chain) => !!chain.shortName)
.map((chain) => {
return {
source: `/${chain.shortName.toLowerCase().replace(" ", "-")}`,
source: `/${chain.shortName
.toLowerCase()
.replace(" ", "-")
.replace(":", "-")}`,
destination: `/?network=${chain.chainId}`,
permanent: true,
};
Expand Down

0 comments on commit f3f29da

Please sign in to comment.