diff --git a/README.md b/README.md index 7fb1714..89cefe1 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,9 @@ This is a [NextJS](https://nextjs.org/) + TypeScript + React app. To create a new frames project, run: ```{bash} npx frames-v2-quickstart -``` \ No newline at end of file +``` + +TODO: +* pin dependencies +* install metrics / enable notifications +* solidify onchain tx support \ No newline at end of file diff --git a/bin/index.js b/bin/index.js index dad1280..9f0071f 100755 --- a/bin/index.js +++ b/bin/index.js @@ -99,7 +99,7 @@ async function init() { type: 'confirm', name: 'useNeynar', message: 'Would you like to use Neynar in your frame?', - default: true + default: false } ]); @@ -234,7 +234,14 @@ async function init() { execSync('git add .', { cwd: projectPath }); execSync('git commit -m "initial commit from frames-v2-quickstart"', { cwd: projectPath }); - console.log(`\n🪐✨ Successfully created frame ${projectName} with git and dependencies installed! ✨🪐`); + // Calculate border length based on message length + const message = `✨🪐 Successfully created frame ${projectName} with git and dependencies installed! 🪐✨`; + const borderLength = message.length; + const borderStars = '✨'.repeat((borderLength / 2) + 1); + + console.log(`\n${borderStars}`); + console.log(`${message}`); + console.log(`${borderStars}`); console.log('\nTo run the app:'); console.log(` cd ${projectName}`); console.log(' npm run dev\n'); diff --git a/dev.js b/dev.js index 25c15bf..15613a0 100644 --- a/dev.js +++ b/dev.js @@ -10,10 +10,10 @@ async function startDev() { tunnel = await localtunnel({ port: 3000 }); console.log(`\n🌐 Local tunnel URL: ${tunnel.url}`); - // Start next dev with the tunnel URL as an environment variable + // Start next dev with the tunnel URL as relevant environment variables nextDev = spawn('next', ['dev'], { stdio: 'inherit', - env: { ...process.env, NEXT_PUBLIC_URL: tunnel.url } + env: { ...process.env, NEXT_PUBLIC_URL: tunnel.url, NEXTAUTH_URL: tunnel.url } }); // Handle cleanup