-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
When use provider with auto connect, nightly wallet auto connect works fine in dev, but it doesn't in prod build [Next js]. Other wallets works
Expected Behavior:
When a user has previously connected their Nightly wallet, it should automatically reconnect when they revisit the app, including in the production build.
Actual Behavior:
In production, the wallet does not auto-connect, and the user must manually initiate the connection each time.
<AptosWalletAdapterProvider
autoConnect
optInWallets={['Petra', 'Nightly', 'T wallet', 'Mizu Wallet', 'Pontem Wallet']}
onError={(error) => {
console.log('Aptos wallet adapter error: ', error);
}}
>
{children}
</AptosWalletAdapterProvider>
"next": "15.2.4",
"react": "^19.1.0",
"@aptos-labs/ts-sdk": "^1.38.0",
"@aptos-labs/wallet-adapter-core": "^5.4.0",
"@aptos-labs/wallet-adapter-react": "^4.1.5",
Metadata
Metadata
Assignees
Labels
No labels