diff --git a/frontend/src/api/graphqlUrl.ts b/frontend/src/api/graphqlUrl.ts index f9c6d8d..1d91417 100644 --- a/frontend/src/api/graphqlUrl.ts +++ b/frontend/src/api/graphqlUrl.ts @@ -1,5 +1,6 @@ const defaultGraphqlUrl = import.meta.env.DEV ? "http://localhost:3001/" - : `${window.location.protocol}//${window.location.hostname}:3001/`; + : "/graphql"; -export const GRAPHQL_URL = import.meta.env.VITE_GRAPHQL_URL || defaultGraphqlUrl; \ No newline at end of file +export const GRAPHQL_URL = + import.meta.env.VITE_GRAPHQL_URL || defaultGraphqlUrl; \ No newline at end of file