web/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in web/.env.example)
NEXT_PUBLIC_DEPLOY_ENV
For production release, change this to PRODUCTION
NEXT_PUBLIC_EDITION
The deployment edition, SELF_HOSTED
NEXT_PUBLIC_BASE_PATH
The base path for the application
CONSOLE_API_URL
Server-only console API origin for server-side requests. Usually matches CONSOLE_API_URL from Docker deployment; local dev can rely on…
NEXT_PUBLIC_API_PREFIX
The base URL of console application, refers to the Console base URL of WEB service if console domain is different from api or web app…
NEXT_PUBLIC_PUBLIC_API_PREFIX
The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from console or api domain. example:…
NEXT_PUBLIC_COOKIE_DOMAIN
When the frontend and backend run on different subdomains, set NEXT_PUBLIC_COOKIE_DOMAIN=1.
NEXT_PUBLIC_SOCKET_URL
WebSocket server URL.
DEV_PROXY_TARGET
Dev proxy routes are configured in web/dev-proxy.config.ts. pnpm -C web run dev:proxy loads web/.env.local before evaluating that config…
DEV_PROXY_PUBLIC_TARGET
Defaults to DEV_PROXY_TARGET when omitted. Set this when Web App public APIs use a different origin.
DEV_PROXY_HOST
DEV_PROXY_PORT
NEXT_PUBLIC_MARKETPLACE_API_PREFIX
The API PREFIX for MARKETPLACE
NEXT_PUBLIC_MARKETPLACE_URL_PREFIX
The URL for MARKETPLACE
NEXT_PUBLIC_SENTRY_DSN
NEXT_TELEMETRY_DISABLED
Disable Next.js Telemetry (https://nextjs.org/telemetry)
NEXT_PUBLIC_UPLOAD_IMAGE_AS_ICON
Disable Upload Image as WebApp icon default is false
NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS
The timeout for the text generation in millisecond
TEXT_GENERATION_TIMEOUT_MS
Used by web/docker/entrypoint.sh to overwrite/export NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS at container startup (Docker only)
NEXT_PUBLIC_CSP_WHITELIST
CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP