npm installexport PRIVATE_KEY=0xYOUR_PRIVATE_KEY
npm run compile
npm run deployAfter deployment, copy the printed contract address into index.html → CONTRACT_ADDRESS.
npm run dev # http://localhost:3000/index.htmlUpload index.html (plus any assets) to an HTTPS static host < 2 MB.
Use that URL in your Farcaster cast as a Mini App.
Check out today's Hourly Roulette!
<your-hosted-URL>
Farcaster will automatically render the button.
-
index.html должен лежать в корне проекта!
- Не в папке public, а именно в корне (как сейчас).
-
В настройках Vercel:
- Build Command: (оставьте пустым)
- Output Directory:
.(точка)
-
Если уже деплоили — зайдите в Vercel Dashboard → Project → Settings → Build & Output Settings и исправьте Output Directory на
.(точка). -
Перезапустите деплой.
-
Проверьте, что сайт открывается по адресу https://roulettewinmon.vercel.app/
Если всё равно не работает — напишите в чат, приложите скриншот настроек Vercel (Build Command и Output Directory), и я помогу до победы!