Skip to Content
DocsDeploymentEnvironment Variables

Environment Variables

Configuration reference for the Marqov platform. Copy .env.example to .env.local and fill in values. Never commit .env.local to git.


Supabase

VariableRequiredDescriptionExample
NEXT_PUBLIC_SUPABASE_URLYesSupabase project URLhttps://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEYYesSupabase anonymous (public) keyeyJ...
SUPABASE_SERVICE_ROLE_KEYYesSupabase service role key (server-side only)eyJ...
PLATFORM_ADMIN_EMAILSYesComma-separated admin emails (platform-wide god-mode access)admin@example.com,team@example.com

Upstash Redis (Rate Limiting)

VariableRequiredDescriptionExample
UPSTASH_REDIS_REST_URLYesUpstash Redis REST API URLhttps://your-instance.upstash.io
UPSTASH_REDIS_REST_TOKENYesUpstash Redis REST API tokenAXXXXxxx...

Rate limiting fails open (requests are allowed) if Redis is unreachable.


Temporal

VariableRequiredDescriptionExample
TEMPORAL_ADDRESSYesTemporal server gRPC addresslocalhost:7233 (local) or ns.tmprl.cloud:7233 (cloud)
TEMPORAL_NAMESPACEYesTemporal namespacedefault (local) or your-namespace.xxxxx (cloud)
TEMPORAL_API_KEYProductionTemporal Cloud API key (not needed for local)eyJ...
NEXT_PUBLIC_TEMPORAL_UI_URLNoTemporal UI URL for “View in Temporal” linkshttp://localhost:8088

AWS / Braket

VariableRequiredDescriptionExample
AWS_REGIONYesDefault AWS regionus-east-1
AWS_ACCESS_KEY_IDYesAWS access key
AWS_SECRET_ACCESS_KEYYesAWS secret key
AWS_PROFILENoAWS profile name (alternative to key/secret)marqov-dev
BRAKET_S3_BUCKETYesS3 bucket for Braket task resultsamazon-braket-marqov-dev
BRAKET_S3_PREFIXYesS3 key prefix for resultsplatform-jobs

Azure Quantum

Azure credentials are managed via team secrets (stored encrypted in the database), not environment variables. Configure via the Team Settings UI or POST /api/team/secrets.

Required secrets per team:

  • subscription_id
  • resource_group
  • workspace_name
  • location

Email (Resend)

VariableRequiredDescriptionExample
RESEND_API_KEYYesResend API key for sending emailsre_...
RESEND_FROM_EMAILYesVerified sender addressnoreply@example.com (prod) or onboarding@resend.dev (dev)

Sentry (Error Tracking)

VariableRequiredDescriptionExample
NEXT_PUBLIC_SENTRY_DSNNoPlatform DSN (Next.js frontend + API)https://xxx@xxx.ingest.sentry.io/xxx
SENTRY_WORKERS_DSNNoWorkers DSN (Python Temporal workers)https://xxx@xxx.ingest.sentry.io/xxx
SENTRY_ORGNoSentry organization slugmarqov
SENTRY_PROJECTNoSentry project slugmarqov-platform
SENTRY_AUTH_TOKENNoSentry auth token for source map uploadssntrys_...

Application

VariableRequiredDescriptionExample
NEXT_PUBLIC_APP_URLYesApplication URL (used for CORS and CSP)http://localhost:3000 (dev) or https://app.marqov.ai (prod)
WORKER_URLYesWorker execution endpoint URLhttp://localhost:8080/execute
PLAYGROUND_API_KEYYesAPI key for worker authentication

Summary by Component

Platform (Next.js)

All variables in the Supabase, Redis, Temporal, Sentry, and Application sections.

Worker (Python)

VariableRequired
NEXT_PUBLIC_SUPABASE_URLYes
SUPABASE_SERVICE_ROLE_KEYYes
TEMPORAL_ADDRESSYes
TEMPORAL_NAMESPACEYes
TEMPORAL_API_KEYProduction
AWS_REGIONYes
AWS_ACCESS_KEY_IDYes
AWS_SECRET_ACCESS_KEYYes
BRAKET_S3_BUCKETYes
BRAKET_S3_PREFIXYes
SENTRY_WORKERS_DSNNo
Last updated on