feat: fix build

This commit is contained in:
lucas-neynar
2025-03-18 11:17:17 -07:00
parent 990ffe1448
commit ed21678311
3 changed files with 7 additions and 1 deletions

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)}`,
];