mobile-preview
4
总安装量
3
周安装量
#52105
全站排名
安装命令
npx skills add https://github.com/mindori/mobile-preview --skill mobile-preview
Agent 安装分布
amp
3
cline
3
opencode
3
cursor
3
kimi-cli
3
codex
3
Skill 文档
Mobile Preview
cloudflared í°ëì ì¬ì©í´ ë¡ì»¬ ê°ë° ìë²ë¥¼ 모ë°ì¼ Chromeìì ì ê·¼ ê°ë¥í ê³µê° URLë¡ ë ¸ì¶íë¤.
Prerequisites
cloudflared ì¤ì¹ íì¸ í ìì¼ë©´ ì¤ì¹:
# ì¤ì¹ íì¸
command -v cloudflared
# macOS ì¤ì¹
brew install cloudflared
Workflow
1. í¬í¸ ê°ì§
íë¡ì í¸ì ê°ë° ìë² í¬í¸ë¥¼ íì íë¤:
| Framework | Default Port | Config |
|---|---|---|
| Next.js | 3000 | package.json â dev script |
| Vite | 5173 | vite.config.* â server.port |
| CRA | 3000 | PORT env var |
| Nuxt | 3000 | nuxt.config.* â devServer |
| Remix | 5173 | remix.config.* |
ì¤í ì¤ì¸ ìë² í¬í¸ íì¸:
lsof -i -sTCP:LISTEN -P | grep -E ':(3000|5173|8080|4321) '
2. ê°ë° ìë² ìì
ìë²ê° ì¤í ì¤ì´ ìëë©´ 백그ë¼ì´ëë¡ ìì:
# package.jsonì dev script ì¬ì© (백그ë¼ì´ë)
npm run dev &
# ëë
pnpm dev &
ìë²ê° ì¤ë¹ë ëê¹ì§ ì ì ë기 í í¬í¸ íì¸.
3. í°ë ìì
ë²ë¤ë ì¤í¬ë¦½í¸ ì¬ì©:
bash ~/.claude/skills/mobile-preview/scripts/tunnel.sh PORT
ëë ì§ì ì¤í:
cloudflared tunnel --url http://localhost:PORT 2>&1 &
ì¶ë ¥ìì https://xxx-xxx.trycloudflare.com URLì íì±íë¤.
4. URL ì ë¬
í°ë URLì ì¬ì©ììê² ëª ííê² ì ë¬:
모ë°ì¼ í리뷰 URL: https://xxx-xxx.trycloudflare.com
모ë°ì¼ Chromeìì ì URLì ì´ì´ì£¼ì¸ì.
í°ëì 백그ë¼ì´ëìì ì¤í ì¤ì´ë©°, ìì
ì´ ëëë©´ ìë ¤ì£¼ì¸ì.
5. ì 리
ì¬ì©ìê° í ì¤í¸ ìë£íë©´ í°ë íë¡ì¸ì¤ ì¢ ë£:
pkill -f "cloudflared tunnel"
Troubleshooting
- í¬í¸ ì¶©ë:
lsof -i :PORTë¡ íì¸, íìì ë¤ë¥¸ í¬í¸ ì¬ì© - í°ë ì°ê²° ì¤í¨: ë°©íë²½/VPN íì¸,
cloudflaredì¬ì¤ì¹ ìë - HTTPS í¼í© ì½í ì¸ : í°ëì HTTPSì´ë¯ë¡ HTTP 리ìì¤ ë¡ë ì¤í¨ ê°ë¥. ê°ë° ìë²ê° ìë ê²½ë¡ ì¬ì©íëì§ íì¸
- HMR 미ìë: cloudflared í°ëììë WebSocket ê¸°ë° HMRì´ ìëíì§ ìì ì ìì. ìë ìë¡ê³ 침 íì
Notes
- cloudflared quick tunnelì ê°ì ë¶íì, 무ë£, HTTPS ìë ì§ì
- URLì í°ë ì¬ìì ìë§ë¤ ë³ê²½ë¨
- í°ë ì¸ì ì ì½ 24ìê° ì ì§ (ì´í ìë ë§ë£)
- 민ê°í ë°ì´í°ê° ìë ê°ë° íê²½ì í°ë ì¬ì© ì 주ì