Skip to content

Commit 047592a

Browse files
committed
feat(setup): auto-save DEBUG credentials to .env
Setup script now saves DEBUG_ADDRESS, DEBUG_SIGNATURE, and DEBUG_API_URL to .env after registering the admin user, so debug scripts work immediately.
1 parent 4c72521 commit 047592a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/setup.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,15 @@ async function main() {
490490
// Register user
491491
const authResponse = await registerUser(adminWallet.address, signature);
492492
logSuccess(`User registered (ID: ${authResponse.accessToken ? 'received JWT' : 'no token'})`);
493+
494+
// Save DEBUG credentials for debug scripts
495+
updateEnvFile({
496+
DEBUG_ADDRESS: adminWallet.address,
497+
DEBUG_SIGNATURE: signature,
498+
DEBUG_API_URL: API_URL + '/v1',
499+
});
500+
logSuccess('Debug credentials saved to .env');
501+
493502
registrationSuccess = true;
494503
break;
495504

0 commit comments

Comments
 (0)