diff --git a/README.md b/README.md index 2e3309f..dbd7cb7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Frames v2 Quickstart by Neynar 🪐 +# Farcaster Mini Apps (formerly Frames) Quickstart by Neynar 🪐 -A Farcaster Frames v2 quickstart npx script. +A Farcaster Mini Apps quickstart npx script. This is a [NextJS](https://nextjs.org/) + TypeScript + React app. diff --git a/bin/init.js b/bin/init.js index a99d272..9120f53 100644 --- a/bin/init.js +++ b/bin/init.js @@ -281,6 +281,7 @@ export async function init() { // Add dependencies packageJson.dependencies = { + "@farcaster/auth-client": "^0.3.0", "@farcaster/auth-kit": "^0.6.0", "@farcaster/frame-core": "^0.0.29", "@farcaster/frame-node": "^0.0.18", @@ -293,6 +294,7 @@ export async function init() { "clsx": "^2.1.1", "dotenv": "^16.4.7", "lucide-react": "^0.469.0", + "mipd": "^0.0.7", "next": "15.0.3", "next-auth": "^4.24.11", "react": "^18", @@ -300,7 +302,8 @@ export async function init() { "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", "viem": "^2.23.6", - "wagmi": "^2.14.12" + "wagmi": "^2.14.12", + "zod": "^3.24.2" }; packageJson.devDependencies = { diff --git a/package.json b/package.json index 6068e07..5bc697d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neynar/create-farcaster-mini-app", - "version": "1.2.9", + "version": "1.2.10", "type": "module", "private": false, "access": "public", diff --git a/scripts/deploy.js b/scripts/deploy.js index f44f2d0..5d0cfd2 100755 --- a/scripts/deploy.js +++ b/scripts/deploy.js @@ -466,21 +466,22 @@ async function deployToVercel(useGitHub = false) { // Deploy the project if (useGitHub) { - console.log('\nšŸ“¦ Deploying with GitHub integration...'); - execSync('vercel deploy --prod --git', { + console.log('\nSetting up GitHub integration...'); + execSync('vercel link', { cwd: projectRoot, stdio: 'inherit', env: process.env }); + console.log('\nšŸ“¦ Deploying with GitHub integration...'); } else { console.log('\nšŸ“¦ Deploying local code directly...'); - execSync('vercel deploy --prod', { - cwd: projectRoot, - stdio: 'inherit', - env: process.env - }); } + execSync('vercel deploy --prod', { + cwd: projectRoot, + stdio: 'inherit', + env: process.env + }); // Verify the actual domain after deployment console.log('\nšŸ” Verifying deployment domain...'); diff --git a/scripts/dev.js b/scripts/dev.js index e4ba3cf..d125545 100755 --- a/scripts/dev.js +++ b/scripts/dev.js @@ -6,7 +6,7 @@ import path from 'path'; import { fileURLToPath } from 'url'; // Load environment variables -dotenv.config(); +dotenv.config({ path: '.env.local' }); const __dirname = path.dirname(fileURLToPath(import.meta.url)); const projectRoot = path.join(__dirname, '..'); @@ -125,9 +125,7 @@ async function startDev() { 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) `); }