We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 362605b commit 4c41fceCopy full SHA for 4c41fce
packages/app-explorer/src/systems/Core/utils/sdk.ts
@@ -1,3 +1,4 @@
1
+import { resolve } from 'url';
2
import { getSdk } from '@fuel-explorer/graphql/src/sdk';
3
import { GraphQLClient } from 'graphql-request';
4
@@ -8,7 +9,8 @@ const VERCEL_ENV =
8
9
10
const getBaseUrl = () => {
11
if (FUEL_EXPLORER_API && FUEL_EXPLORER_API_KEY) return FUEL_EXPLORER_API;
- if (VERCEL_ENV !== 'development') return `https://${VERCEL_URL}`;
12
+ if (VERCEL_ENV !== 'development')
13
+ return resolve(`https://${VERCEL_URL}`, '/api/graphql');
14
return 'http://localhost:3000/api/graphql';
15
};
16
const getHeaders = () => {
0 commit comments