Skip to content

Enviroment Variables

This page provides a comprehensive reference for all the environment variables required to run the AlbertPlus project. These variables should be managed and stored in your Doppler project.

These variables are required for the Next.js web application.

VariableDescription
NEXT_PUBLIC_CONVEX_URLThe URL of your Convex deployment.
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYThe publishable key for your Clerk frontend.
CLERK_SECRET_KEYThe secret key for your Clerk backend.
CONVEX_DEPLOYMENTThe name of your Convex deployment.

These variables are needed for the Chrome browser extension.

VariableDescription
PLASMO_PUBLIC_CONVEX_URLThe URL of your Convex deployment.
PLASMO_PUBLIC_CLERK_SYNC_HOSTThe host for Clerk’s cross-origin authentication.
CLERK_FRONTEND_APIThe URL of your Clerk Frontend API.

These environment variables are required for the Cloudflare Worker scraper.

VariableDescription
CONVEX_SITE_URLThe HTTP API URL for your Convex backend.
CONVEX_API_KEYAn API key for authenticating with the Convex backend.

These variables are configured in your Convex deployment environment.

VariableDescription
CLERK_JWT_ISSUER_DOMAINThe JWT issuer domain from your Clerk account for token validation.
CONVEX_API_KEYA shared API key for authenticating requests between Convex and the scraper worker.
SCRAPER_URLThe URL of the deployed scraper worker (e.g., https://scraper.albertplus.com).

These are configured in wrangler.jsonc.

BindingTypeDescription
SCRAPING_QUEUEQueueBinding for the Cloudflare Worker queue.
DBD1 DatabaseBinding for the Cloudflare D1 database.
VariableDescription
SCRAPING_BASE_URLThe base URL for NYU course bulletins (e.g., https://bulletins.nyu.edu/).
ALBERT_SCRAPING_BASE_URLThe base URL for Albert public class search (e.g., https://bulletins.nyu.edu/class-search/).