diff --git a/bin/index.js b/bin/index.js index be5f861..0cb8f72 100755 --- a/bin/index.js +++ b/bin/index.js @@ -250,12 +250,9 @@ async function init() { "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "dotenv": "^16.4.7", - "inquirer": "^12.4.3", - "localtunnel": "^2.0.2", "lucide-react": "^0.469.0", "next": "15.0.3", "next-auth": "^4.24.11", - "ox": "^0.4.2", "react": "^18", "react-dom": "^18", "tailwind-merge": "^2.6.0", @@ -270,6 +267,7 @@ async function init() { "@types/react-dom": "^18", "eslint": "^8", "eslint-config-next": "15.0.3", + "localtunnel": "^2.0.2", "postcss": "^8", "tailwindcss": "^3.4.1", "typescript": "^5" diff --git a/dev.js b/dev.js index 1355773..b2506c9 100644 --- a/dev.js +++ b/dev.js @@ -8,9 +8,29 @@ let isCleaningUp = false; async function startDev() { // Start localtunnel and get URL tunnel = await localtunnel({ port: 3000 }); + let ip; + try { + ip = await fetch('https://ipv4.icanhazip.com').then(res => res.text()).then(ip => ip.trim()); + } catch (error) { + console.error('Error getting IP address:', error); + } + console.log(` 🌐 Local tunnel URL: ${tunnel.url} +💻 To test on desktop: + 1. Open the localtunnel URL in your browser: ${tunnel.url} + 2. Enter your IP address in the password field${ip ? `: ${ip}` : ''} + 3. Click "Click to Submit" -- your frame should now load + 4. Navigate to the Warpcast Frame Developer Tools: https://warpcast.com/~/developers/frames + 5. Enter your frame URL: ${tunnel.url} + 6. Click "Preview" to launch your frame within Warpcast + +⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ +⚠️ You will not be able to load your frame in Warpcast until ⚠️ +⚠️ you submit your IP address in the localtunnel password field ⚠️ +⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️ + 📱 To test in Warpcast mobile app: 1. Open Warpcast on your phone 2. Go to Settings > Developer > Frames diff --git a/package.json b/package.json index de4db23..7f9ba55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "frames-v2-demo", - "version": "0.1.6", + "version": "0.1.7", "type": "module", "files": [ "bin/index.js"