Your SkateHive Account Shop has been converted to work as a Farcaster mini app using MiniKit. Follow these steps to deploy and test:
Copy .env.example to .env.local and fill in the required values:
cp .env.example .env.localRequired variables:
NEXT_PUBLIC_ONCHAINKIT_API_KEY: Get from CDP PortalNEXT_PUBLIC_URL: Your deployed app URL (e.g., https://your-app.vercel.app)
pnpm install# Install Vercel CLI
npm install -g vercel
# Deploy
vercel
# Set environment variables
vercel env add NEXT_PUBLIC_ONCHAINKIT_API_KEY
vercel env add NEXT_PUBLIC_URL
# ... add other env varsOnce deployed, run:
npx create-onchain --manifestThis will:
- Open a browser to connect your Farcaster custody wallet
- Generate the manifest signature
- Update your
.env.localwith the manifest variables
Then add these to your Vercel environment:
FARCASTER_HEADERFARCASTER_PAYLOADFARCASTER_SIGNATURE
- Copy your deployed Vercel URL
- Visit the Farcaster Manifest Tool
- Paste your URL and tap Submit
- Test in Farcaster dev tools
Your mini app now includes:
- Frame Management: Save/remove frame functionality
- Profile Viewing: View user profiles
- Notifications: Send notifications to users who saved your frame
- Close Button: Allow users to close the frame
- External Links: Open links in the parent app
useMiniKit: Core frame initializationuseAddFrame: Save frame to user's listuseOpenUrl: Open external URLsuseClose: Close the frameuseViewProfile: View user profilesuseNotification: Send notifications
The original functionality of your SkateHive Account Shop remains intact while adding mini app capabilities!