Skip to content

Commit e3fa343

Browse files
authored
Feat: Add next examples (#771)
* add next-wagmi-app-router example * add nextjs Solana example * add the correct favicon.ico in all examples * add next.js ethers example * fix eslint issues * add next multichain example
1 parent 4f6762b commit e3fa343

File tree

88 files changed

+42809
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+42809
-0
lines changed
-10.6 KB
Binary file not shown.
14.7 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_PROJECT_ID=
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# env files (can opt-in for committing if needed)
33+
.env
34+
.env.local
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Reown AppKit Example using ethers (next.js with App Router)
2+
3+
This is a Next.js project.
4+
5+
## Usage
6+
7+
1. Go to [Reown Cloud](https://cloud.reown.com) and create a new project.
8+
2. Copy your `Project ID`
9+
3. Rename `.env.example` to `.env` and paste your `Project ID` as the value for `NEXT_PUBLIC_PROJECT_ID`
10+
4. Run `pnpm install` to install dependencies
11+
5. Run `pnpm run dev` to start the development server
12+
13+
## Resources
14+
15+
- [Reown — Docs](https://docs.reown.com)
16+
- [Next.js — Docs](https://nextjs.org/docs)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
};
6+
7+
export default nextConfig;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "next-ethers-app-router",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@reown/appkit": "^1.3.2",
13+
"@reown/appkit-adapter-ethers": "^1.3.2",
14+
"ethers": "^6.13.4",
15+
"next": "15.0.3",
16+
"react": "19.0.0-rc-66855b96-20241106",
17+
"react-dom": "19.0.0-rc-66855b96-20241106"
18+
},
19+
"devDependencies": {
20+
"@types/node": "^20",
21+
"@types/react": "^18",
22+
"@types/react-dom": "^18",
23+
"eslint": "^8",
24+
"eslint-config-next": "15.0.3",
25+
"typescript": "^5"
26+
}
27+
}

0 commit comments

Comments
 (0)