Environment variables used by the Reponse SDK and storefronts.
2 min read/Last updated Jul 9, 2026
On this page
Overview
Reponse uses environment variables to configure API keys, database connections, third-party integrations, and runtime behavior. This reference lists every variable, grouped by category. Never commit secrets to source control — use `.env.local` or your hosting provider's secrets manager.
Core (Required)
Variable
Description
NEXT_PUBLIC_SUPABASE_URL
Supabase project URL. Exposed to the client for auth and realtime.
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY
Supabase anon/public key. Safe for client-side use.
SUPABASE_SERVICE_ROLE_KEY
Supabase service role key. Server-only. Full database access.
OPENAI_API_KEY
OpenAI API key for chat completions and embeddings.
NEXT_PUBLIC_BASE_URL
Public base URL of the app (e.g. https://reponse.ai).
SDK
Variable
Description
REPONSE_API_KEY
Workspace API key used by the SDK. Server-side only.
NEXT_PUBLIC_REPONSE_BASE_URL
Optional API base URL override for the client SDK.
Storefront
These variables are specific to storefronts built with the [Storefront Starter](doc:storefront-starter) or the Reponse SDK.
Variable
Description
NEXT_PUBLIC_REPONSE_API_URL
API base URL (e.g. https://reponse.ai/api).
NEXT_PUBLIC_REPONSE_API_KEY
Client-side API key (same value as REPONSE_API_KEY). Used for client-side cart and variant operations.
NEXT_PUBLIC_WORKSPACE_ID
Workspace UUID. Found in the dashboard URL or Settings → General.
NEXT_PUBLIC_STORE_NAME
Store name displayed in the header and footer.
NEXT_PUBLIC_SITE_URL
Canonical site URL for SEO (e.g. https://my-store.com).
NEXT_PUBLIC_MARKET_ID
Market UUID for currency, taxes, and shipping. Found in Dashboard → Settings → Markets.