This example shows how to use Ponder in a monorepo alongside a Next.js app.
To run this project:
- In the
ponder
directory, copy.env.example
to.env.local
and add a mainnet RPC URL. - Run the dev script in the
ponder
directory and thefrontend
directory (npm run dev
)
Now, the Next.js app should display and refresh data from the Ponder GraphQL API.