Skip to content

Conversation

@rickstaa
Copy link
Member

Adds a new environment variable that lets developers temporarily override the subgraph endpoint with a Studio endpoint during local development.

Adds a new environment variable that lets developers temporarily
override the subgraph endpoint with a Studio endpoint during local
development.
@vercel
Copy link

vercel bot commented Dec 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Jan 6, 2026 5:45pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new environment variable NEXT_PUBLIC_SUBGRAPH_ENDPOINT that allows developers to temporarily override the subgraph endpoint during local development, useful for testing with Graph Studio sandbox endpoints.

Key Changes

  • Introduced NEXT_PUBLIC_SUBGRAPH_ENDPOINT environment variable for overriding subgraph URLs
  • Updated validation logic to make SUBGRAPH_KEY optional when the override is provided
  • Applied the override to all chain configurations (mainnet, goerli, arbitrum, arbitrum-goerli)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lib/chains.ts Added SUBGRAPH_URL_OVERRIDE constant and applied it as the primary subgraph URL source across all chain configurations, with updated validation
.env.example Documented the new optional NEXT_PUBLIC_SUBGRAPH_ENDPOINT environment variable with usage guidance

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Jan 6, 2026

@rickstaa I've opened a new pull request, #473, to work on those changes. Once the pull request is ready, I'll request review from you.

@ECWireless ECWireless merged commit 5a201b6 into main Jan 7, 2026
6 checks passed
@ECWireless ECWireless deleted the chore/add-subgraph-endpoint-override branch January 7, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants