mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-06 01:12:34 -05:00
Ask SPONSOR_SIGNER
This commit is contained in:
@@ -65,7 +65,7 @@ async function loadEnvLocal() {
|
||||
let newEnvContent = envContent;
|
||||
|
||||
for (const [key, value] of Object.entries(localEnv)) {
|
||||
if (key !== 'SEED_PHRASE') {
|
||||
if (key !== 'SEED_PHRASE' && key !== 'SPONSOR_SIGNER') {
|
||||
// Update process.env
|
||||
process.env[key] = value;
|
||||
// Add to .env content if not already there
|
||||
@@ -87,6 +87,9 @@ async function loadEnvLocal() {
|
||||
if (localEnv.SEED_PHRASE) {
|
||||
process.env.SEED_PHRASE = localEnv.SEED_PHRASE;
|
||||
}
|
||||
if (localEnv.SPONSOR_SIGNER) {
|
||||
process.env.SPONSOR_SIGNER = localEnv.SPONSOR_SIGNER;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
// Error reading .env.local, which is fine
|
||||
@@ -370,6 +373,8 @@ async function main() {
|
||||
[`NEYNAR_API_KEY="${process.env.NEYNAR_API_KEY}"`] : []),
|
||||
...(neynarClientId ?
|
||||
[`NEYNAR_CLIENT_ID="${neynarClientId}"`] : []),
|
||||
...(process.env.SPONSOR_SIGNER ?
|
||||
[`SPONSOR_SIGNER="${process.env.SPONSOR_SIGNER}"`] : []),
|
||||
|
||||
// FID (if it exists in current env)
|
||||
...(process.env.FID ? [`FID="${process.env.FID}"`] : []),
|
||||
|
||||
Reference in New Issue
Block a user