[Self-hosted] HTTP actions 404 + JWT parsing error (Clerk)
Hi all, I’m running Convex in a self-hosted setup (convex-local-backend binary, not Docker) with a Next.js + Clerk app, and I’m seeing two issues.
Summary
- Web app using
ConvexProviderWithClerk works: ctx.auth.getUserIdentity() returns the user.- HTTP actions defined in convex/router.ts (e.g.
/save, /links-list) always return 404.- Using
ConvexHttpClient.setAuth(clerkJwt) from a Next.js API route causes a JWT parsing error on the backend.Environment
- Convex: self-hosted
convex-local-backend (version: 1.29.3)- Frontend: Next.js + TypeScript
- Auth: Clerk with auth.config.ts:
-
domain: "https://clerk.usekalpa.com"-
applicationID: "convex"