diff --git a/bin/app.ts b/bin/app.ts index 014b10b47..11d613da0 100644 --- a/bin/app.ts +++ b/bin/app.ts @@ -181,11 +181,13 @@ export class RoutingAPIPipeline extends Stack { // Load RPC provider URLs from AWS secret let jsonRpcProviders = {} as { [chainId: string]: string } SUPPORTED_CHAINS.forEach((chainId: ChainId) => { - const key = `WEB3_RPC_${chainId}` - jsonRpcProviders[key] = jsonRpcProvidersSecret.secretValueFromJson(key).toString() - new CfnOutput(this, key, { - value: jsonRpcProviders[key], - }) + if (chainId !== ChainId.WORLDCHAIN && chainId !== ChainId.ASTROCHAIN_SEPOLIA) { + const key = `WEB3_RPC_${chainId}` + jsonRpcProviders[key] = jsonRpcProvidersSecret.secretValueFromJson(key).toString() + new CfnOutput(this, key, { + value: jsonRpcProviders[key], + }) + } }) // Load RPC provider URLs from AWS secret (for RPC Gateway) @@ -365,8 +367,6 @@ const jsonRpcProviders = { WEB3_RPC_56: process.env.WEB3_RPC_56!, WEB3_RPC_8453: process.env.WEB3_RPC_8453!, WEB3_RPC_324: process.env.WEB3_RPC_324!, - WEB3_RPC_480: process.env.WEB3_RPC_480!, - WEB3_RPC_1301: process.env.WEB3_RPC_1301!, // The followings are for RPC Gateway // Optimism // INFURA_10: process.env.INFURA_10!,