Skip to content

conflux-fans/web3modal-conflux-nextjs

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Environment Variable Configuration

Environment variable NEXT_PUBLIC_PROJECT_ID is required to start the project. You can visit WalletConnect dashboard to get the project id.

Run

cp .env.sample .env

to create the .env file and then fill the NEXT_PUBLIC_PROJECT_ID with the project id get from WalletConnect dashboard.

A temporary project id 19301a87a841afbb902273cd078b5d9d can be used if you are running the project on localhost. This project id is created by Conflux developer for local debugging and cannot be used for production builds.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Note: You need to fill the environment variable field, ensuring NEXT_PUBLIC_PROJECT_ID can be found for production build.