Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.65 KB

File metadata and controls

14 lines (12 loc) · 1.65 KB

Agent instructions

Cursor Cloud specific instructions

  • Install: ./scripts/cloud-agent-install.sh. That puts Bun on PATH, runs bun install --frozen-lockfile, then bunx convex dev --once so a local Convex backend exists. Never commit secrets.
  • Checks: bun run lint, bun run typecheck, bun run build. All three must pass. There is no test suite; the build is the gate.
  • All three checks pass with zero env vars. With Clerk keys missing, every page renders a setup checklist instead of the app.
  • Dev servers: bunx convex dev in one terminal and bun dev in another, or ./scripts/cloud-agent-start.sh (bunx convex dev --start 'bun dev' when CLERK_JWT_ISSUER_DOMAIN is set; otherwise bun dev so public pages still come up).
  • Cloud agents cannot run convex login. Leave CONVEX_DEPLOY_KEY unset so the CLI provisions a local backend automatically.
  • Routes: / and /board are public. /apply and /host are Clerk-gated (see proxy.ts).
  • Host access: HOST_EMAILS is required. It gates /host in Next.js and every host function in Convex. With it unset, nobody can open the host view.
  • Convex: the client reads NEXT_PUBLIC_CONVEX_URL from env (written into .env.local by bunx convex dev). convex/_generated is committed, so no codegen runs at install time beyond the --once push.
  • After changing convex/, keep bunx convex dev running so the local backend stays in sync. A code change alone does not update a cloud Convex deployment.
  • When Clerk secrets are missing in the environment, prefer verifying UI changes against the Vercel preview deployment instead of running the gated flows locally.