The Miku dashboard is now ready for free deployment on Vercel!
- FastAPI server that exposes bot database via REST API
- Allows remote dashboard to access bot data
- Runs alongside the Discord bot
- All API routes now fetch from bot's API server instead of local database
- No more direct database access from dashboard
- Works seamlessly with remote deployment
vercel.json- Vercel deployment configstart_all.py- Runs both bot and API server- Updated environment variable examples
- Comprehensive deployment documentation
- Removed
better-sqlite3from dashboard (no longer needed) - Dashboard is now lighter and deployable to serverless platforms
Miku/
├── src/
│ ├── api_server.py # NEW: REST API for dashboard
│ ├── bot.py
│ ├── cogs/
│ └── utils/
├── dash/
│ ├── src/
│ │ ├── pages/
│ │ │ └── api/ # Updated to use bot API
│ │ ├── components/
│ │ └── lib/
│ ├── vercel.json # NEW: Vercel config
│ ├── QUICK_DEPLOY.md # NEW: Quick guide
│ └── .env.example # Updated
├── start_all.py # NEW: Start bot + API
├── DEPLOYMENT.md # NEW: Full guide
├── .env.example # Updated
└── requirements.txt # Updated (added FastAPI)
Add to your .env on WispByte:
API_PORT=8000
ALLOWED_ORIGINS=*Change your startup command to:
python start_all.pyFollow: DEPLOYMENT.md or dash/QUICK_DEPLOY.md
Quick steps:
- Push code to GitHub
- Import to Vercel
- Add environment variables
- Deploy!
Set BOT_API_URL in Vercel to your WispByte bot's URL.
DISCORD_BOT_TOKEN=your_token
API_PORT=8000
ALLOWED_ORIGINS=https://your-dashboard.vercel.appNEXTAUTH_URL=https://your-dashboard.vercel.app
NEXTAUTH_SECRET=generate_with_openssl_rand_base64_32
DISCORD_CLIENT_ID=your_client_id
DISCORD_CLIENT_SECRET=your_client_secret
DISCORD_BOT_TOKEN=your_token
BOT_API_URL=https://your-bot-url.wispbyte.comcurl https://your-bot-url.com/
# Should return: {"status": "ok"}- Visit your Vercel URL
- Login with Discord
- View server stats!
- Full Guide: DEPLOYMENT.md
- Quick Deploy: dash/QUICK_DEPLOY.md
- Leveling Config: LEVELING_CONFIG.md
- ✅ WispByte (Bot hosting)
- ✅ Vercel (Dashboard hosting)
- ✅ Discord API
- ✅ Everything!
Total Cost: $0/month
Need help? Check the FAQs and troubleshooting in DEPLOYMENT.md!