# Copy to `.env` (or set via your shell) to enable optional integrations. # `.env`, `.env.local`, and `.env.production` are all gitignored. # # Values below are PUBLIC (they're shipped to the browser by Astro's # `envField`, and live behind rate limiting / allow-lists on the vendor side). # Kapa CUSTOM_FRONTEND integration ID for the custom "Ask AI" React chat # (KapaChatLauncher / @kapaai/react-sdk). If unset, the custom chat launcher # is omitted. Get yours at: https://app.kapa.ai (Integrations → custom frontend). # Do not reuse this value for WebMCP — that needs a Website Widget integration. PUBLIC_KAPA_INTEGRATION_ID= # Kapa Website Widget integration ID for WebMCP only. Emitted as # data-website-id on the official widget script with data-webmcp-enabled=true # so in-browser agents can call search_warp_knowledge_sources. If unset, the # WebMCP script is omitted. The default floating Ask button stays hidden # (data-button-hide); the custom sidebar Ask control remains the human entry # point. Get yours at: https://app.kapa.ai (Integrations → Website Widget). # Live Docs Bot example: "Docs Widget" (type WIDGET). PUBLIC_KAPA_WEBSITE_WIDGET_INTEGRATION_ID= # RudderStack analytics — required for docs_404 event tracking and page analytics. # Without these, no analytics events are sent and the weekly 404 monitor will # report zero data. Set both in the Vercel project environment (all environments). # # PUBLIC_RUDDERSTACK_WRITE_KEY: Source write key from the RudderStack dashboard # (Sources → your docs source → Write Key). # PUBLIC_RUDDERSTACK_DATA_PLANE_URL: Data plane endpoint. Currently proxied # through https://app.warp.dev — do NOT change to a direct # *.dataplane.rudderstack.com URL without also updating the connect-src # directive in vercel.json (a mismatch silently blocks all events in the browser). PUBLIC_RUDDERSTACK_WRITE_KEY= PUBLIC_RUDDERSTACK_DATA_PLANE_URL= # Server-only Kapa API key for the public agent retrieval proxy at GET /retrieve. # Set this in the Vercel project environment (Production/Preview/Development). # Never use a PUBLIC_ prefix — the key must stay server-side. Create the key in # the Kapa dashboard (Deploy → API Keys) for the Warp docs project. # # GET /retrieve enforces an in-process fixed-window limit (60 req/min per client # IP) in src/lib/kapa-agent-retrieval.js. OPTIONS preflight is not counted. # vercel.json cannot express rate_limit WAF actions — also add a Vercel Firewall # rate_limit rule on path /retrieve (per IP, ~60/min, 429) via dashboard or # `vercel firewall` for multi-region enforcement. KAPA_DOCS_RETRIEVAL_API_KEY=