fix: build script bug

This commit is contained in:
veganbeef
2025-06-13 18:19:19 -07:00
parent 8966dcee30
commit cfe51f067c
3 changed files with 38 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ async function lookupFidByCustodyAddress(custodyAddress, apiKey) {
{
headers: {
'accept': 'application/json',
'x-api-key': apiKey
'x-api-key': 'FARCASTER_V2_FRAMES_DEMO'
}
}
);
@@ -269,10 +269,17 @@ async function main() {
}
// Try to get client ID from API
const appInfo = await queryNeynarApp(neynarApiKey);
if (appInfo) {
neynarClientId = appInfo.app_uuid;
console.log('✅ Fetched Neynar app client ID');
if (!neynarClientId) {
const appInfo = await queryNeynarApp(neynarApiKey);
if (appInfo) {
neynarClientId = appInfo.app_uuid;
console.log('✅ Fetched Neynar app client ID');
break;
}
}
// We have a client ID (either from .env or fetched from API), so we can break out of the loop
if (neynarClientId) {
break;
}
@@ -366,6 +373,7 @@ async function main() {
// FID (if it exists in current env)
...(process.env.FID ? [`FID="${process.env.FID}"`] : []),
`NEXT_PUBLIC_USE_WALLET="${process.env.NEXT_PUBLIC_USE_WALLET || 'false'}"`,
// NextAuth configuration
`NEXTAUTH_SECRET="${process.env.NEXTAUTH_SECRET || crypto.randomBytes(32).toString('hex')}"`,