From af6cf6b11536ef98018de7dc5aa646e2b203a332 Mon Sep 17 00:00:00 2001 From: Maciej Trojan Date: Thu, 13 Nov 2025 11:10:03 +0100 Subject: [PATCH] fix: proxy devnet rpc requests over https --- config/chains.ts | 2 +- next.config.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/chains.ts b/config/chains.ts index 9527402..9a303ac 100644 --- a/config/chains.ts +++ b/config/chains.ts @@ -10,7 +10,7 @@ export const filecoinDevnet = defineChain({ }, rpcUrls: { default: { - http: ["http://fidlabs.servehttp.com:1234/rpc/v1"], + http: ["/devnet-rpc", "http://fidlabs.servehttp.com:1234/rpc/v1"], }, }, }); diff --git a/next.config.ts b/next.config.ts index 97aee02..285e94c 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,6 +5,14 @@ const nextConfig: NextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_PATH, output: "standalone", reactStrictMode: true, + async rewrites() { + return [ + { + source: "/devnet-rpc", + destination: "http://fidlabs.servehttp.com:1234/rpc/v1", + }, + ]; + }, }; export default withSentryConfig(nextConfig, {