diff --git a/.env.example b/.env.example index 5c2e725f..30aa77da 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ -WS_CORETIME_CHAIN="WSS endpoint of the coretime chain" -WS_RELAY_CHAIN="WSS endpoint of the coretime relay chain" +WS_ROCOCO_CORETIME_CHAIN="WSS endpoint of the coretime chain" +WS_KUSAMA_CORETIME_CHAIN="WSS endpoint of the coretime chain" +WS_ROCOCO_RELAY_CHAIN="WSS endpoint of the coretime relay chain" +WS_KUSAMA_RELAY_CHAIN="WSS endpoint of the coretime relay chain" diff --git a/Dockerfile b/Dockerfile index ec8f1dfc..6c7364b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ WORKDIR /corehub COPY . . # Set the necessary environment variables -ENV WS_CORETIME_CHAIN="ws://127.0.0.1:9910" -ENV WS_RELAY_CHAIN="ws://127.0.0.1:9900" +ENV WS_ROCOCO_CORETIME_CHAIN="ws://127.0.0.1:9910" +ENV WS_ROCOCO_RELAY_CHAIN="ws://127.0.0.1:9900" RUN apk add --no-cache libc6-compat diff --git a/next.config.js b/next.config.js index 7bee534b..5ab342eb 100644 --- a/next.config.js +++ b/next.config.js @@ -5,8 +5,10 @@ const nextConfig = { domains: ['github.com'], }, env: { - WS_CORETIME_CHAIN: process.env.WS_CORETIME_CHAIN || '', - WS_RELAY_CHAIN: process.env.WS_RELAY_CHAIN, + WS_ROCOCO_CORETIME_CHAIN: process.env.WS_ROCOCO_CORETIME_CHAIN || '', + WS_KUSAMA_CORETIME_CHAIN: process.env.WS_KUSAMA_CORETIME_CHAIN || '', + WS_ROCOCO_RELAY_CHAIN: process.env.WS_ROCOCO_RELAY_CHAIN, + WS_KUSAMA_RELAY_CHAIN: process.env.WS_KUSAMA_RELAY_CHAIN, }, }; diff --git a/src/components/Elements/FeatureCard/index.tsx b/src/components/Elements/FeatureCard/index.tsx index bd54f7cc..c9c5d9bb 100644 --- a/src/components/Elements/FeatureCard/index.tsx +++ b/src/components/Elements/FeatureCard/index.tsx @@ -27,7 +27,7 @@ export const FeatureCard = ({ enabled, href, }: FeatureCardProps) => { - const { push } = useRouter(); + const { push, query } = useRouter(); const theme = useTheme(); return ( @@ -40,7 +40,7 @@ export const FeatureCard = ({