Merge branch 'main' into lucas/beginner-friendly-script

This commit is contained in:
lucas-neynar 2025-04-04 18:47:15 -07:00
commit 13d5ae9ff2
No known key found for this signature in database
5 changed files with 17 additions and 15 deletions

View File

@ -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. This is a [NextJS](https://nextjs.org/) + TypeScript + React app.

View File

@ -281,6 +281,7 @@ export async function init() {
// Add dependencies // Add dependencies
packageJson.dependencies = { packageJson.dependencies = {
"@farcaster/auth-client": "^0.3.0",
"@farcaster/auth-kit": "^0.6.0", "@farcaster/auth-kit": "^0.6.0",
"@farcaster/frame-core": "^0.0.29", "@farcaster/frame-core": "^0.0.29",
"@farcaster/frame-node": "^0.0.18", "@farcaster/frame-node": "^0.0.18",
@ -293,6 +294,7 @@ export async function init() {
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"lucide-react": "^0.469.0", "lucide-react": "^0.469.0",
"mipd": "^0.0.7",
"next": "15.0.3", "next": "15.0.3",
"next-auth": "^4.24.11", "next-auth": "^4.24.11",
"react": "^18", "react": "^18",
@ -300,7 +302,8 @@ export async function init() {
"tailwind-merge": "^2.6.0", "tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7", "tailwindcss-animate": "^1.0.7",
"viem": "^2.23.6", "viem": "^2.23.6",
"wagmi": "^2.14.12" "wagmi": "^2.14.12",
"zod": "^3.24.2"
}; };
packageJson.devDependencies = { packageJson.devDependencies = {

View File

@ -1,6 +1,6 @@
{ {
"name": "@neynar/create-farcaster-mini-app", "name": "@neynar/create-farcaster-mini-app",
"version": "1.2.9", "version": "1.2.10",
"type": "module", "type": "module",
"private": false, "private": false,
"access": "public", "access": "public",

View File

@ -466,21 +466,22 @@ async function deployToVercel(useGitHub = false) {
// Deploy the project // Deploy the project
if (useGitHub) { if (useGitHub) {
console.log('\n📦 Deploying with GitHub integration...'); console.log('\nSetting up GitHub integration...');
execSync('vercel deploy --prod --git', { execSync('vercel link', {
cwd: projectRoot, cwd: projectRoot,
stdio: 'inherit', stdio: 'inherit',
env: process.env env: process.env
}); });
console.log('\n📦 Deploying with GitHub integration...');
} else { } else {
console.log('\n📦 Deploying local code directly...'); 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 // Verify the actual domain after deployment
console.log('\n🔍 Verifying deployment domain...'); console.log('\n🔍 Verifying deployment domain...');

View File

@ -6,7 +6,7 @@ import path from 'path';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
// Load environment variables // Load environment variables
dotenv.config(); dotenv.config({ path: '.env.local' });
const __dirname = path.dirname(fileURLToPath(import.meta.url)); const __dirname = path.dirname(fileURLToPath(import.meta.url));
const projectRoot = path.join(__dirname, '..'); const projectRoot = path.join(__dirname, '..');
@ -125,9 +125,7 @@ async function startDev() {
1. Open the Warpcast Frame Developer Tools: https://warpcast.com/~/developers/frames 1. Open the Warpcast Frame Developer Tools: https://warpcast.com/~/developers/frames
2. Scroll down to the "Preview Frame" tool 2. Scroll down to the "Preview Frame" tool
3. Enter this URL: ${frameUrl} 3. Enter this URL: ${frameUrl}
4. Click "Preview" to test your frame 4. Click "Preview" to test your frame (note that it may take ~5 seconds to load the first time)
Note: You may need to accept the self-signed certificate in your browser when first visiting ${frameUrl}
`); `);
} }