localhost.
Prerequisites
Install:- Git.
- Node.js 24 or newer.
- A Convex account.
Install dependencies
Configure local values
At minimum, set these values in.env.local:
Run Convex and Next.js
Start the app:convex dev together. The predev flow initializes Convex, runs the Convex Auth setup helper once, and opens the Convex dashboard.
If the Convex Auth setup helper prompts for SITE_URL, use the local or tunnel URL you configured.
Convex URLs
npx convex dev writes these values locally:
Public tunnels
For local Meta OAuth or tracked links, setSITE_URL to a public tunnel URL instead of http://localhost:3000: