From f3f29da67eebe1800215a802c50abec84750ba8a Mon Sep 17 00:00:00 2001 From: xtools-at Date: Tue, 23 Jan 2024 11:36:50 +0100 Subject: [PATCH] fix: build --- next.config.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index d5ea82e65..25d1a941d 100644 --- a/next.config.js +++ b/next.config.js @@ -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, }; @@ -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, };