diff --git a/src/graphql/client/chat.ts b/src/graphql/client/chat.ts index df801c02..c00fd705 100644 --- a/src/graphql/client/chat.ts +++ b/src/graphql/client/chat.ts @@ -1,3 +1,4 @@ +import { chatApiUrl } from '../../utils/config' // inbox import { createGraphQLClient } from '../createGraphQLClient' import createChat from '../mutation/chat/chat-create' @@ -21,7 +22,6 @@ import { QueryLoad_ChatsArgs, QueryLoad_Messages_ByArgs, } from '../schema/chat.gen' -import { chatApiUrl } from '../../utils/config' export const inboxClient = { private: null, diff --git a/src/graphql/client/core.ts b/src/graphql/client/core.ts index 391f2e18..62aa24a8 100644 --- a/src/graphql/client/core.ts +++ b/src/graphql/client/core.ts @@ -16,6 +16,7 @@ import type { Topic, } from '../schema/core.gen' +import { coreApiUrl } from '../../utils/config' import { createGraphQLClient } from '../createGraphQLClient' import createArticle from '../mutation/core/article-create' import deleteShout from '../mutation/core/article-delete' @@ -46,7 +47,6 @@ import reactionsLoadBy from '../query/core/reactions-load-by' import topicBySlug from '../query/core/topic-by-slug' import topicsAll from '../query/core/topics-all' import topicsRandomQuery from '../query/core/topics-random' -import { coreApiUrl } from "../../utils/config" const publicGraphQLClient = createGraphQLClient(coreApiUrl) diff --git a/src/utils/config.ts b/src/utils/config.ts index 9585180d..cfc2f7fa 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -16,4 +16,4 @@ const defaultChatUrl = 'https://chat.discours.io' export const chatApiUrl = import.meta.env.PUBLIC_CHAT_API || defaultChatUrl const defaultAuthUrl = 'https://auth.discours.io' -export const authApiUrl = import.meta.env.PUBLIC_AUTH_API || defaultAuthUrl \ No newline at end of file +export const authApiUrl = import.meta.env.PUBLIC_AUTH_API || defaultAuthUrl