Skip to content

Devex: improve tenderly and dev tools#1182

Open
rossgalloway wants to merge 4 commits intomainfrom
make-tenderly-a-toggle
Open

Devex: improve tenderly and dev tools#1182
rossgalloway wants to merge 4 commits intomainfrom
make-tenderly-a-toggle

Conversation

@rossgalloway
Copy link
Copy Markdown
Collaborator

@rossgalloway rossgalloway commented Apr 10, 2026

Summary

  • add a local Tenderly mode toggle in the header with the updated single-badge interaction and safer disable behavior. This means you can keep the VITE_TENDERLY_MODE env var true and toggle between tenderly mode and normal mode in dev builds more easily.
  • add shared dev/preview API launchers with port selection, portable port detection, and mode-aware env handling. When you run bun run dev or bun run preview, a small CLI picker pops up and lets you change the port of the API. This is useful if you are running more than one dev server at a time and one of them makes changes to the API server.
  • harden API reuse so it only reuses matching local runtime state and only invalidates on API-relevant committed/env changes

Testing

  • bun run lint:fix
  • bun run tslint
  • bunx vitest run scripts/api-runtime.test.ts scripts/dev.test.ts scripts/preview.test.ts src/config/tenderly.test.ts
  • bun run build

to test

  • set VITE_TENDERLY_MODE to true and make sure your tenderly testnets are set up. you should be able to toggle between the testnets and live chain RPCs with the toggle. clicking on the toggle badge still opens the toolbar.
  • try running bun run dev and bun run preview and you should be able to choose your api server port.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

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

Project Deployment Actions Updated (UTC)
yearnfi Ready Ready Preview, Comment Apr 10, 2026 10:52pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
yearnfi-nextjs Ignored Ignored Apr 10, 2026 10:52pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA a828dc1.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

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.

1 participant