hmmm...

Deploying the backend

Getting set up with Convex

If you run into any trouble, refer to the official documentation from Convex.

Setup

  1. Login or sign up for a Convex account

  2. Create a new project

  3. Install the Convex CLI

    pnpm add -g convex
  4. Login to your Convex account

    pnpx convex login
  5. Initialize your development environment

    pnpx convex dev

    Note: Make sure to choose the project you created in step 2

    Note: This should fail due to missing environment variables. Once it fails, hit Ctrl + C to stop the server.

  6. Commit and push your changes

  7. Set production environment variables

    Navigate to the project settings for your convex production deployment. You will need to generate a deployment key. Once you have this, set the following environment variables in the Vercel dashboard.

    NEXT_PUBLIC_CONVEX_URL=<your-convex-deployment-url>
    CONVEX_DEPLOYMENT=<your-deployment-key>

On this page