Handle env value for http enabled
/ test (pull_request) Successful in 1m16s
/ lint (pull_request) Successful in 1m19s
/ build (pull_request) Successful in 2m3s

This commit is contained in:
IshaVenikar
2025-05-26 18:29:28 +05:30
parent 6887cf9100
commit bacebaefcb
+1 -1
View File
@@ -73,7 +73,7 @@ export const useChainsFromRegistry = () => {
export const getNodeFromArray = async (nodeArray: readonly string[]) => {
let secureNodes: readonly string[] = [];
if (process.env.NEXT_PUBLIC_IS_HTTP_ENABLED === "true") {
if (process.env.NEXT_PUBLIC_IS_HTTP_ENABLED?.toLowerCase() === "true") {
// Allow all nodes, HTTP or HTTPS
secureNodes = nodeArray;
} else {