feat: make cli scripts more beginner friendly

This commit is contained in:
lucas-neynar
2025-04-04 18:42:54 -07:00
parent fb67300f55
commit df9769a270
3 changed files with 18 additions and 21 deletions

View File

@@ -119,15 +119,13 @@ async function startDev() {
5. Click "Preview" (note that it may take ~10 seconds to load)
`);
} else {
frameUrl = 'https://localhost:3000';
frameUrl = 'http://localhost:3000';
console.log(`
💻 To test your frame:
1. Open the Warpcast Frame Developer Tools: https://warpcast.com/~/developers/frames
2. Scroll down to the "Preview Frame" tool
3. Enter this URL: ${frameUrl}
4. Click "Preview" to test your frame
Note: You may need to accept the self-signed certificate in your browser when first visiting ${frameUrl}
4. Click "Preview" to test your frame (note that it may take ~5 seconds to load the first time)
`);
}
@@ -136,7 +134,7 @@ Note: You may need to accept the self-signed certificate in your browser when fi
? path.join(projectRoot, 'node_modules', '.bin', 'next.cmd')
: path.join(projectRoot, 'node_modules', '.bin', 'next');
nextDev = spawn(nextBin, ['dev', ...(useTunnel ? [] : ['--experimental-https'])], {
nextDev = spawn(nextBin, ['dev'], {
stdio: 'inherit',
env: { ...process.env, NEXT_PUBLIC_URL: frameUrl, NEXTAUTH_URL: frameUrl },
cwd: projectRoot