feat: fix build

This commit is contained in:
lucas-neynar 2025-03-18 11:17:17 -07:00
parent 990ffe1448
commit ed21678311
No known key found for this signature in database
3 changed files with 7 additions and 1 deletions

View File

@ -329,6 +329,7 @@ async function init() {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"crypto": "^1.0.1",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"localtunnel": "^2.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "create-neynar-farcaster-frame",
"version": "1.0.12",
"version": "1.0.13",
"type": "module",
"files": [
"bin/index.js"

View File

@ -5,6 +5,7 @@ import { mnemonicToAccount } from 'viem/accounts';
import { fileURLToPath } from 'url';
import inquirer from 'inquirer';
import dotenv from 'dotenv';
import crypto from 'crypto';
// Load environment variables
dotenv.config({ path: '.env.local' });
@ -238,6 +239,10 @@ async function main() {
// FID (if it exists in current env)
...(process.env.FID ? [`FID="${process.env.FID}"`] : []),
// NextAuth configuration
`NEXTAUTH_SECRET="${process.env.NEXTAUTH_SECRET || crypto.randomBytes(32).toString('hex')}"`,
`NEXTAUTH_URL="https://${domain}"`,
// Frame manifest with signature
`FRAME_METADATA=${JSON.stringify(metadata)}`,
];