From 007e0310ef4e849ee00b30029b4bd12b50815443 Mon Sep 17 00:00:00 2001 From: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com> Date: Wed, 9 Aug 2023 15:27:19 -0700 Subject: [PATCH] chore: update regen server api endpoints (#138) * chore: update regen server api endpoints * empty commit --- .env.local.example | 2 +- indexer-codegen.ts | 2 +- netlify.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.local.example b/.env.local.example index 1138177..79fd725 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,4 +1,4 @@ VITE_LOCAL_HOSTNAME=http://127.0.0.1 VITE_PROXY_URL_REGEN_MAINNET=http://api.registry.regen.network VITE_PROXY_URL_REGEN_TESTNET=http://api-staging.registry.regen.network -VITE_INDEXER_GRAPHQL_API=http://localhost:5000/indexer/graphql +VITE_INDEXER_GRAPHQL_API=http://localhost:5000/indexer/v1/graphql diff --git a/indexer-codegen.ts b/indexer-codegen.ts index 8331051..ba36f5a 100644 --- a/indexer-codegen.ts +++ b/indexer-codegen.ts @@ -2,7 +2,7 @@ import { CodegenConfig } from '@graphql-codegen/cli' const config: CodegenConfig = { overwrite: true, - schema: 'http://localhost:5000/indexer/graphql', + schema: 'http://localhost:5000/indexer/v1/graphql', documents: ['src/graphql/indexer/**/*.graphql'], generates: { './src/gql/': { diff --git a/netlify.toml b/netlify.toml index 00f059e..8f1fd35 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,8 +1,8 @@ [context.production.environment] - VITE_INDEXER_GRAPHQL_API="https://api.registry.regen.network/indexer/graphql" + VITE_INDEXER_GRAPHQL_API="https://api.regen.network/indexer/v1/graphql" [context.deploy-preview.environment] - VITE_INDEXER_GRAPHQL_API="https://api-staging.registry.regen.network/indexer/graphql" + VITE_INDEXER_GRAPHQL_API="https://api-staging.regen.network/indexer/v1/graphql" [[redirects]] from = "/*"