fix: sponsor signer env var

This commit is contained in:
veganbeef
2025-07-15 13:08:55 -07:00
parent 78626c2dc7
commit 181c364de4
3 changed files with 5 additions and 3 deletions

View File

@@ -486,7 +486,7 @@ export async function init(
siwe: '^3.0.0',
};
// Add auth-kit and quick-auth dependencies if useSponsoredSigner is true
// Add auth-kit and next-auth dependencies if useSponsoredSigner is true
if (answers.useSponsoredSigner) {
packageJson.dependencies['@farcaster/auth-kit'] = '>=0.6.0 <1.0.0';
packageJson.dependencies['next-auth'] = '^4.24.11';
@@ -661,6 +661,9 @@ export async function init(
fs.appendFileSync(envPath, `\nSEED_PHRASE="${answers.seedPhrase}"`);
}
fs.appendFileSync(envPath, `\nUSE_TUNNEL="${answers.useTunnel}"`);
if (answers.useSponsoredSigner) {
fs.appendFileSync(envPath, `\nSPONSOR_SIGNER="${answers.useSponsoredSigner}"`);
}
fs.unlinkSync(envExamplePath);
} else {