From 2c26cbc18da4850f4a8c049b00229b8e9d20322d Mon Sep 17 00:00:00 2001 From: Sebastian Lorenz Date: Fri, 6 Jun 2025 17:50:18 +0200 Subject: [PATCH 1/3] update ipfs url --- examples/aggregations/package.json | 2 +- .../arweave-blocks-transactions/package.json | 2 +- examples/cosmos-block-filtering/package.json | 2 +- examples/cosmos-osmosis-token-swaps/package.json | 2 +- .../cosmos-validator-delegations/package.json | 2 +- examples/cosmos-validator-rewards/package.json | 2 +- examples/ethereum-gravatar/package.json | 2 +- examples/near-blocks/package.json | 2 +- examples/near-receipts/package.json | 2 +- .../cli/src/command-helpers/compiler.test.ts | 16 ++++++++-------- packages/cli/src/command-helpers/ipfs.ts | 2 +- website/src/components/dropzone.tsx | 2 +- website/src/lib/ipfs.ts | 2 +- website/src/routes/publish.lazy.tsx | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/aggregations/package.json b/examples/aggregations/package.json index d45881028..1c3dcff40 100644 --- a/examples/aggregations/package.json +++ b/examples/aggregations/package.json @@ -12,7 +12,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "test": "graph test" }, diff --git a/examples/arweave-blocks-transactions/package.json b/examples/arweave-blocks-transactions/package.json index bf76c9b6a..c4b1ee865 100644 --- a/examples/arweave-blocks-transactions/package.json +++ b/examples/arweave-blocks-transactions/package.json @@ -14,7 +14,7 @@ "codegen": "graph codegen", "create": "graph create arweave-example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create arweave-example --node http://localhost:8020", - "deploy": "graph deploy arweave-example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy arweave-example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy arweave-example -l v0.1.0 --ipfs http://localhost:5001 --node http://localhost:8020", "remove-local": "graph remove arweave-example --node http://localhost:8020" }, diff --git a/examples/cosmos-block-filtering/package.json b/examples/cosmos-block-filtering/package.json index dd8b7d839..ef5b59117 100644 --- a/examples/cosmos-block-filtering/package.json +++ b/examples/cosmos-block-filtering/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-block-filtering --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-block-filtering --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-block-filtering --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-block-filtering --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-block-filtering -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/cosmos-osmosis-token-swaps/package.json b/examples/cosmos-osmosis-token-swaps/package.json index e28e0827d..4207581eb 100644 --- a/examples/cosmos-osmosis-token-swaps/package.json +++ b/examples/cosmos-osmosis-token-swaps/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create osmosis-token-swaps --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create osmosis-token-swaps --node http://0.0.0.0:8020", - "deploy": "graph deploy osmosis-token-swaps --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy osmosis-token-swaps --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy osmosis-token-swaps -l v0.1.0 --ipfs http://0.0.0.0:5001 --node http://0.0.0.0:8020", "remove-local": "graph remove osmosis-token-swaps --node http://0.0.0.0:8020" }, diff --git a/examples/cosmos-validator-delegations/package.json b/examples/cosmos-validator-delegations/package.json index 572e875e4..7798ea49f 100644 --- a/examples/cosmos-validator-delegations/package.json +++ b/examples/cosmos-validator-delegations/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-validator-delegations --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-validator-delegations --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-validator-delegations --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-validator-delegations --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-validator-delegations -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/cosmos-validator-rewards/package.json b/examples/cosmos-validator-rewards/package.json index 45c49d870..e77e88926 100644 --- a/examples/cosmos-validator-rewards/package.json +++ b/examples/cosmos-validator-rewards/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-validator-rewards --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-validator-rewards --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-validator-rewards --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-validator-rewards --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-validator-rewards -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/ethereum-gravatar/package.json b/examples/ethereum-gravatar/package.json index bda33a86d..f74ea7891 100644 --- a/examples/ethereum-gravatar/package.json +++ b/examples/ethereum-gravatar/package.json @@ -14,7 +14,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/examples/near-blocks/package.json b/examples/near-blocks/package.json index 83bee499c..d5d54a0cf 100644 --- a/examples/near-blocks/package.json +++ b/examples/near-blocks/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://localhost:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/examples/near-receipts/package.json b/examples/near-receipts/package.json index 4a4d6b75f..fa2fdd2c3 100644 --- a/examples/near-receipts/package.json +++ b/examples/near-receipts/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://localhost:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/packages/cli/src/command-helpers/compiler.test.ts b/packages/cli/src/command-helpers/compiler.test.ts index 533ed0549..580fdb393 100644 --- a/packages/cli/src/command-helpers/compiler.test.ts +++ b/packages/cli/src/command-helpers/compiler.test.ts @@ -3,26 +3,26 @@ import { appendApiVersionForGraph } from './compiler.js'; describe('appendApiVersionForGraph', { concurrent: true }, () => { it('append /api/v0 to Prod URL with trailing slash', () => { - expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs/')).toBe( - 'https://api.thegraph.com/ipfs/api/v0', + expect(appendApiVersionForGraph('https://ipfs.thegraph.com/')).toBe( + 'https://ipfs.thegraph.com/api/v0', ); }); it('append /api/v0 to Prod URL without trailing slash', () => { - expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs')).toBe( - 'https://api.thegraph.com/ipfs/api/v0', + expect(appendApiVersionForGraph('https://ipfs.thegraph.com')).toBe( + 'https://ipfs.thegraph.com/api/v0', ); }); it('append /api/v0 to Staging URL without trailing slash', () => { - expect(appendApiVersionForGraph('https://staging.api.thegraph.com/ipfs')).toBe( - 'https://staging.api.thegraph.com/ipfs/api/v0', + expect(appendApiVersionForGraph('https://staging.ipfs.thegraph.com')).toBe( + 'https://staging.ipfs.thegraph.com/api/v0', ); }); it('do nothing if Prod URL has /api/v0', () => { - expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs/api/v0')).toBe( - 'https://api.thegraph.com/ipfs/api/v0', + expect(appendApiVersionForGraph('https://ipfs.thegraph.com/api/v0')).toBe( + 'https://ipfs.thegraph.com/api/v0', ); }); diff --git a/packages/cli/src/command-helpers/ipfs.ts b/packages/cli/src/command-helpers/ipfs.ts index 6e3886285..0d65765d6 100644 --- a/packages/cli/src/command-helpers/ipfs.ts +++ b/packages/cli/src/command-helpers/ipfs.ts @@ -1,3 +1,3 @@ -const DEFAULT_IPFS_URL = 'https://api.thegraph.com/ipfs/api/v0' as const; +const DEFAULT_IPFS_URL = 'https://ipfs.thegraph.com/api/v0' as const; export { DEFAULT_IPFS_URL }; diff --git a/website/src/components/dropzone.tsx b/website/src/components/dropzone.tsx index 3f2cb16ed..5a2ca793a 100644 --- a/website/src/components/dropzone.tsx +++ b/website/src/components/dropzone.tsx @@ -114,7 +114,7 @@ export function SubgraphImageDropZone(props: React.InputHTMLAttributes Date: Fri, 6 Jun 2025 18:44:23 +0200 Subject: [PATCH 2/3] adjust ipfs url --- examples/aggregations/package.json | 2 +- examples/arweave-blocks-transactions/package.json | 2 +- examples/cosmos-block-filtering/package.json | 2 +- examples/cosmos-osmosis-token-swaps/package.json | 2 +- examples/cosmos-validator-delegations/package.json | 2 +- examples/cosmos-validator-rewards/package.json | 2 +- examples/ethereum-gravatar/package.json | 2 +- examples/near-blocks/package.json | 2 +- examples/near-receipts/package.json | 2 +- packages/cli/src/command-helpers/ipfs.ts | 2 +- website/src/components/dropzone.tsx | 2 +- website/src/lib/ipfs.ts | 2 +- website/src/routes/publish.lazy.tsx | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/aggregations/package.json b/examples/aggregations/package.json index 1c3dcff40..d45881028 100644 --- a/examples/aggregations/package.json +++ b/examples/aggregations/package.json @@ -12,7 +12,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "test": "graph test" }, diff --git a/examples/arweave-blocks-transactions/package.json b/examples/arweave-blocks-transactions/package.json index c4b1ee865..bf76c9b6a 100644 --- a/examples/arweave-blocks-transactions/package.json +++ b/examples/arweave-blocks-transactions/package.json @@ -14,7 +14,7 @@ "codegen": "graph codegen", "create": "graph create arweave-example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create arweave-example --node http://localhost:8020", - "deploy": "graph deploy arweave-example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy arweave-example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy arweave-example -l v0.1.0 --ipfs http://localhost:5001 --node http://localhost:8020", "remove-local": "graph remove arweave-example --node http://localhost:8020" }, diff --git a/examples/cosmos-block-filtering/package.json b/examples/cosmos-block-filtering/package.json index ef5b59117..dd8b7d839 100644 --- a/examples/cosmos-block-filtering/package.json +++ b/examples/cosmos-block-filtering/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-block-filtering --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-block-filtering --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-block-filtering --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-block-filtering --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-block-filtering -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/cosmos-osmosis-token-swaps/package.json b/examples/cosmos-osmosis-token-swaps/package.json index 4207581eb..e28e0827d 100644 --- a/examples/cosmos-osmosis-token-swaps/package.json +++ b/examples/cosmos-osmosis-token-swaps/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create osmosis-token-swaps --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create osmosis-token-swaps --node http://0.0.0.0:8020", - "deploy": "graph deploy osmosis-token-swaps --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy osmosis-token-swaps --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy osmosis-token-swaps -l v0.1.0 --ipfs http://0.0.0.0:5001 --node http://0.0.0.0:8020", "remove-local": "graph remove osmosis-token-swaps --node http://0.0.0.0:8020" }, diff --git a/examples/cosmos-validator-delegations/package.json b/examples/cosmos-validator-delegations/package.json index 7798ea49f..572e875e4 100644 --- a/examples/cosmos-validator-delegations/package.json +++ b/examples/cosmos-validator-delegations/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-validator-delegations --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-validator-delegations --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-validator-delegations --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-validator-delegations --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-validator-delegations -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/cosmos-validator-rewards/package.json b/examples/cosmos-validator-rewards/package.json index e77e88926..45c49d870 100644 --- a/examples/cosmos-validator-rewards/package.json +++ b/examples/cosmos-validator-rewards/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create cosmos-validator-rewards --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create cosmos-validator-rewards --node http://127.0.0.1:8020", - "deploy": "graph deploy cosmos-validator-rewards --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy cosmos-validator-rewards --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy cosmos-validator-rewards -l v0.1.0 --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "prepare:cosmoshub": "mustache config/cosmoshub.json subgraph.template.yaml > subgraph.yaml", "prepare:osmosis": "mustache config/osmosis.json subgraph.template.yaml > subgraph.yaml", diff --git a/examples/ethereum-gravatar/package.json b/examples/ethereum-gravatar/package.json index f74ea7891..bda33a86d 100644 --- a/examples/ethereum-gravatar/package.json +++ b/examples/ethereum-gravatar/package.json @@ -14,7 +14,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/examples/near-blocks/package.json b/examples/near-blocks/package.json index d5d54a0cf..83bee499c 100644 --- a/examples/near-blocks/package.json +++ b/examples/near-blocks/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://localhost:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/examples/near-receipts/package.json b/examples/near-receipts/package.json index fa2fdd2c3..4a4d6b75f 100644 --- a/examples/near-receipts/package.json +++ b/examples/near-receipts/package.json @@ -13,7 +13,7 @@ "codegen": "graph codegen", "create": "graph create example --node https://api.studio.thegraph.com/deploy/", "create-local": "graph create example --node http://127.0.0.1:8020", - "deploy": "graph deploy example --ipfs https://ipfs.thegraph.com/ --node https://api.studio.thegraph.com/deploy/", + "deploy": "graph deploy example --ipfs https://api.thegraph.com/ipfs/ --node https://api.studio.thegraph.com/deploy/", "deploy-local": "graph deploy example --ipfs http://localhost:5001 --node http://127.0.0.1:8020" }, "devDependencies": { diff --git a/packages/cli/src/command-helpers/ipfs.ts b/packages/cli/src/command-helpers/ipfs.ts index 0d65765d6..6e3886285 100644 --- a/packages/cli/src/command-helpers/ipfs.ts +++ b/packages/cli/src/command-helpers/ipfs.ts @@ -1,3 +1,3 @@ -const DEFAULT_IPFS_URL = 'https://ipfs.thegraph.com/api/v0' as const; +const DEFAULT_IPFS_URL = 'https://api.thegraph.com/ipfs/api/v0' as const; export { DEFAULT_IPFS_URL }; diff --git a/website/src/components/dropzone.tsx b/website/src/components/dropzone.tsx index 5a2ca793a..3f2cb16ed 100644 --- a/website/src/components/dropzone.tsx +++ b/website/src/components/dropzone.tsx @@ -114,7 +114,7 @@ export function SubgraphImageDropZone(props: React.InputHTMLAttributes Date: Fri, 6 Jun 2025 19:33:39 +0200 Subject: [PATCH 3/3] revert test changes --- .../cli/src/command-helpers/compiler.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cli/src/command-helpers/compiler.test.ts b/packages/cli/src/command-helpers/compiler.test.ts index 580fdb393..533ed0549 100644 --- a/packages/cli/src/command-helpers/compiler.test.ts +++ b/packages/cli/src/command-helpers/compiler.test.ts @@ -3,26 +3,26 @@ import { appendApiVersionForGraph } from './compiler.js'; describe('appendApiVersionForGraph', { concurrent: true }, () => { it('append /api/v0 to Prod URL with trailing slash', () => { - expect(appendApiVersionForGraph('https://ipfs.thegraph.com/')).toBe( - 'https://ipfs.thegraph.com/api/v0', + expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs/')).toBe( + 'https://api.thegraph.com/ipfs/api/v0', ); }); it('append /api/v0 to Prod URL without trailing slash', () => { - expect(appendApiVersionForGraph('https://ipfs.thegraph.com')).toBe( - 'https://ipfs.thegraph.com/api/v0', + expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs')).toBe( + 'https://api.thegraph.com/ipfs/api/v0', ); }); it('append /api/v0 to Staging URL without trailing slash', () => { - expect(appendApiVersionForGraph('https://staging.ipfs.thegraph.com')).toBe( - 'https://staging.ipfs.thegraph.com/api/v0', + expect(appendApiVersionForGraph('https://staging.api.thegraph.com/ipfs')).toBe( + 'https://staging.api.thegraph.com/ipfs/api/v0', ); }); it('do nothing if Prod URL has /api/v0', () => { - expect(appendApiVersionForGraph('https://ipfs.thegraph.com/api/v0')).toBe( - 'https://ipfs.thegraph.com/api/v0', + expect(appendApiVersionForGraph('https://api.thegraph.com/ipfs/api/v0')).toBe( + 'https://api.thegraph.com/ipfs/api/v0', ); });