Configure Vite
Updatevite.config.ts
to add React and ensure Node globals are defined.
vite.config.ts
process.env
or global
.
Get a Client API Key
Get your Client API Key from the Coinbase Developer Platform.Copy the key to use in your project.
These variables are essential for your MiniKit app to function:
The name of your Mini App as it appears to users
The deployed URL of your application (must be HTTPS)
Your Coinbase Developer Platform API key
Generated during manifest creation for account association
Generated during manifest creation for account association
Generated during manifest creation for account association
Setup Environment Variables
Create a.env
file in your project’s root directory and add your API key.
.env
Ensure all referenced assets are publicly accessible via HTTPS.