Skip to content

Commit 05bea02

Browse files
committedFeb 1, 2024
chore: use default requireEnv value
1 parent 0fc6457 commit 05bea02

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎packages/graphql/src/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { createSchema } from './schema';
88
import { createGraphqlFetch } from './utils/executor';
99
import { requireEnv } from './utils/requireEnv';
1010

11-
const { FUEL_PROVIDER = 'https://beta-5.fuel.network/graphql' } = requireEnv([
12-
'FUEL_PROVIDER',
11+
const { FUEL_PROVIDER } = requireEnv([
12+
['FUEL_PROVIDER', 'https://beta-5.fuel.network/graphql'],
1313
]);
1414

1515
// Create a server:

‎packages/graphql/tsup.config.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ export default defineConfig((options) => ({
2929
SERVER_PORT: port,
3030
CODE_GEN: true,
3131
WATCH: Boolean(options.watch),
32-
// TODO: remove the requirement of fetching the fuel provider
33-
// at build time.
34-
FUEL_PROVIDER:
35-
process.env.FUEL_PROVIDER || 'https://beta-5.fuel.network/graphql',
32+
FUEL_PROVIDER: process.env.FUEL_PROVIDER,
3633
},
3734
});
3835
// Wait process to close until restarting

0 commit comments

Comments
 (0)