Skip to content

Nightly wallet auto connect doesn't work in prod #557

@Kadchenko

Description

@Kadchenko

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions