Skip to content

fix: add Arc RPC rewrite - #149

Open
UfukNode wants to merge 1 commit into
circlefin:masterfrom
UfukNode:fix/arc-rpc-rewrite
Open

fix: add Arc RPC rewrite#149
UfukNode wants to merge 1 commit into
circlefin:masterfrom
UfukNode:fix/arc-rpc-rewrite

Conversation

@UfukNode

Copy link
Copy Markdown

Arc Testnet is configured to use /api/rpc/arc as a same-origin RPC path, but there was no matching Next rewrite, so requests to that endpoint returned the app's 404 page.

Added the rewrite to forward that path to Arc's testnet RPC.

Checked with:

  • npm run lint
  • npm run build
  • local POST to /api/rpc/arc with eth_chainId

@hjchen-circle hjchen-circle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. thank you for submitting the fix.

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.

2 participants