Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: automatically detect API keys in ~/.onchainkit #1600

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

dschlabach
Copy link
Contributor

What changed? Why?
We've gotten feedback from developers that regularly use create-onchain that it's tedious to have to re-copy their API from CDP. This PR adds a feature that automatically detects an API key in ~/.onchainkit and asks the developer whether or not they'd like to use it. If not, CLI behaves as normal.

Notes to reviewers

How has it been tested?

  • Tested with valid API key in .~/onchainkit
  • Tested with invalid API key in ~/.onchainkit
  • Tested with no ~/.onchainkit file
  • Tested with with pnpm, bun, and npm

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-coverage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 11:35pm
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 11:35pm
onchainkit-routes ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 11:35pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant