If you are using Next.js with Web3, this is one of the reasons to stick to the Pages Router (client-side only) instead of the App Router (RSC + SSR). More importantly, if you are working with private keys, do not use a custodial setup (@ThePumpkinToken). Use Ika imported keys + smart contract policies if you want to build on top of users’ wallets. Make sure the user share always stays in the browser (for example, a Vite app or a Next.js Pages Router app). For a Web3 app, avoid the App Router and RSC. CSR is more than enough for good web3 apps.