Loading...
Loading...
Expose local dev server to mobile Chrome via cloudflared tunnel. Use when: (1) user wants to preview results on mobile, (2) requests like "preview on mobile", "check on my phone", "test on mobile", (3) remote development (remote-control/SSH) where external access is needed, (4) sharing localhost with external devices. Korean triggers: "모바일에서 확인", "모바일 프리뷰", "폰으로 확인", "폰으로 테스트", "핸드폰에서 보고 싶다", "모바일에서 보고 싶어", "모바일로 테스트", "폰에서 열어봐".
npx skill4agent add mindori/mobile-preview mobile-preview# Check installation
command -v cloudflared
# macOS
brew install cloudflared| Framework | Default Port | Config |
|---|---|---|
| Next.js | 3000 | |
| Vite | 5173 | |
| CRA | 3000 | |
| Nuxt | 3000 | |
| Remix | 5173 | |
lsof -i -sTCP:LISTEN -P | grep -E ':(3000|5173|8080|4321) 'npm run dev &
# or
pnpm dev &bash ~/.claude/skills/mobile-preview/scripts/tunnel.sh PORTcloudflared tunnel --url http://localhost:PORT 2>&1 &https://xxx-xxx.trycloudflare.comMobile preview URL: https://xxx-xxx.trycloudflare.com
Open the URL above in mobile Chrome.
The tunnel is running in the background. Let me know when you're done.pkill -f "cloudflared tunnel"lsof -i :PORT