Skip to content

Commit 404c4ff

Browse files
committed
move graphql endpoint
1 parent c8c5817 commit 404c4ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

apps/connect/src/routes/authenticate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { usePublicSpaces } from '@/hooks/use-public-spaces';
1818
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET;
1919
const API_URL =
2020
import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis'
21-
? `${Graph.TESTNET_API_ORIGIN}/v2/graphql` // TODO: switch to mainnet
22-
: `${Graph.TESTNET_API_ORIGIN}/v2/graphql`;
21+
? `${Graph.TESTNET_API_ORIGIN}/graphql` // TODO: switch to mainnet
22+
: `${Graph.TESTNET_API_ORIGIN}/graphql`;
2323

2424
type AuthenticateSearch = {
2525
data: unknown;

packages/hypergraph-react/src/internal/use-public-space.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const usePublicSpace = ({ spaceId, enabled }: { spaceId: string; enabled:
2424
const result = useQuery({
2525
queryKey: ['hypergraph-public-space', spaceId],
2626
queryFn: async () => {
27-
const result = await request<SpaceQueryResult>(`${Config.getApiOrigin()}/v2/graphql`, spaceQueryDocument, {
27+
const result = await request<SpaceQueryResult>(`${Config.getApiOrigin()}/graphql`, spaceQueryDocument, {
2828
spaceId,
2929
});
3030
return result?.space?.page

packages/hypergraph-react/test/prepare-publish.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('preparePublish', () => {
133133

134134
const result = await preparePublish(params);
135135

136-
expect(mockRequest).toHaveBeenCalledWith(`${Config.getApiOrigin()}/v2/graphql`, expect.any(String), {
136+
expect(mockRequest).toHaveBeenCalledWith(`${Config.getApiOrigin()}/graphql`, expect.any(String), {
137137
entityId: entity.id,
138138
spaceId: publicSpaceId,
139139
});

packages/typesync-studio/graphql.codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const config = {
1818
overwrite: true,
1919
generates: {
2020
'./src/generated/': {
21-
schema: `${Graph.TESTNET_API_ORIGIN}/v2/graphql`,
21+
schema: `${Graph.TESTNET_API_ORIGIN}/graphql`,
2222
documents: ['./src/**/*.{ts,tsx}'],
2323
preset: 'client',
2424
config: pluginConfig,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { Graph } from '@geoprotocol/geo-sdk';
22
import { GraphQLClient } from 'graphql-request';
33

4-
export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`);
4+
export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/graphql`);

0 commit comments

Comments
 (0)