web-to-miniapp
Installation
SKILL.md
Migrate Next.js Web App to World App Mini App
You are converting an existing Next.js web app that uses viem to work as a World App mini app. Follow these steps in order.
Step 1 — Install MiniKit
npm install @worldcoin/minikit-js @worldcoin/minikit-react
Step 2 — Disable SSR for pages that use MiniKit
MiniKit depends on window.WorldApp which doesn't exist on the server. SSR causes hydration mismatches that silently break all React event handlers — buttons render but do nothing.
Wrap the page component in a dynamic import with ssr: false:
// src/app/page.tsx
'use client';
Related skills