https://github.com/draym/test-onchainkit
https://github.com/draym/test-onchainkit
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/draym/test-onchainkit
- Owner: Draym
- Created: 2025-04-26T15:57:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-27T11:32:53.000Z (about 1 year ago)
- Last Synced: 2025-06-02T07:27:00.991Z (about 1 year ago)
- Language: TypeScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Issue with onchainkit Wallet component
when using Link from next/link, the onchainkit wallet component does not work as expected.
The current account state is lost, and the user will be required to login again. However if the user refresh the page the account state is retained.
- Add NEXT_PUBLIC_ONCHAINKIT_API_KEY in .env
- The Wallet component is working as expected in dev environment:
```bash
npm run dev
```
- But stop working in production environment:
```bash
npm run build
npm run start
```