Skip to main content

Local Development

Set up the Pindeck development environment on your machine.

Prerequisites

  • Bun runtime
  • Access to the self-hosted Pindeck Convex deployment
  • (Optional) Google or GitHub OAuth app credentials — only needed if enabling OAuth in Convex env

Setup

1. Clone and install

2. Configure environment

Set the self-hosted production Convex URLs in .env.local:

3. Build and serve

The app runs on port 4173. The serve script auto-kills any existing process on that port.
Do not use bunx convex dev when targeting production. The build scripts enforce the production Convex target and fail fast otherwise.

Environment variables

Frontend (.env.local)

Convex Dashboard (backend)

Set these in the Convex Project Settings:

Useful scripts

Production deployments

  • Frontend production: Vercel project pindeck, published at https://pindeck.dev
  • Backend production: self-hosted Convex at https://convex.serving.cloud
  • HTTP/actions production: self-hosted Convex site at https://convex-site.serving.cloud
  • Discord bot: Hosted separately — see Discord bot guide
Do not set CONVEX_DEPLOYMENT, and do not select Convex Cloud deployments named production, production-pindeck, or similar. Pindeck production uses the self-hosted Convex target selected by CONVEX_SELF_HOSTED_URL and CONVEX_SELF_HOSTED_ADMIN_KEY.
The old duplicate Vercel project pindeck-754f was removed on June 15, 2026. Current frontend deploys and status contexts should come only from the pindeck project.