From 604543fbb924de6967244725f5ec58fb6a745dcd Mon Sep 17 00:00:00 2001 From: Cameron Manavian Date: Thu, 26 Oct 2023 04:28:56 -0700 Subject: [PATCH] fix: verify that `process` exists before using it (#1378) * make sure process exists * cs --------- Co-authored-by: Daniel Bate --- .changeset/sour-geckos-jam.md | 5 +++++ packages/wallet/src/configs.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/sour-geckos-jam.md diff --git a/.changeset/sour-geckos-jam.md b/.changeset/sour-geckos-jam.md new file mode 100644 index 00000000000..41da2d3b3c2 --- /dev/null +++ b/.changeset/sour-geckos-jam.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/wallet": patch +--- + +Fixed usage of process diff --git a/packages/wallet/src/configs.ts b/packages/wallet/src/configs.ts index ad6b0d39559..b613aad39b8 100644 --- a/packages/wallet/src/configs.ts +++ b/packages/wallet/src/configs.ts @@ -1 +1 @@ -export const FUEL_NETWORK_URL = process.env.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/graphql'; +export const FUEL_NETWORK_URL = process?.env?.FUEL_NETWORK_URL || 'http://127.0.0.1:4000/graphql';