From 07b1af32785ba33e0b732cafded0fe02e1f54d80 Mon Sep 17 00:00:00 2001 From: karooolis Date: Tue, 17 Sep 2024 21:18:14 +0300 Subject: [PATCH] add explorer to explore redirect --- packages/explorer/next.config.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/explorer/next.config.mjs b/packages/explorer/next.config.mjs index 6eab04cefe..2969929ed5 100644 --- a/packages/explorer/next.config.mjs +++ b/packages/explorer/next.config.mjs @@ -8,6 +8,15 @@ export default function config() { config.externals.push("pino-pretty", "lokijs", "encoding"); return config; }, + redirects: async () => { + return [ + { + source: "/:chainName/worlds/:worldAddress/explorer", + destination: "/:chainName/worlds/:worldAddress/explorer", + permanent: true, + }, + ]; + }, }; return nextConfig;