# Every environment variable this storefront reads. Copy this file to `.env.local` # (gitignored) and fill it in, or run `npm run connect`, which writes `.env.local` for you. # Nothing here is a secret: this storefront runs on PUBLIC sales channel credentials only. # Never add an admin API key (brainerce_*) to a storefront. # # NEXT_PUBLIC_* values are inlined at BUILD time: run `npm run build` again after changing # one, and restart a running dev server. # Your sales channel id (vc_...), from the Brainerce dashboard. Required. NEXT_PUBLIC_BRAINERCE_SALES_CHANNEL_ID= # Legacy alias of the line above, still accepted. The scaffolder writes both with the same id. # NEXT_PUBLIC_BRAINERCE_CONNECTION_ID= # Store name and currency. Fallbacks for the moments before live data arrives. NEXT_PUBLIC_STORE_NAME= NEXT_PUBLIC_STORE_CURRENCY= # Brainerce API origin, server side (BFF proxy and SSR). Default: https://api.brainerce.com BRAINERCE_API_URL=https://api.brainerce.com # The same origin for the browser (AI chat widget, CSP). Keep it equal to the line above. NEXT_PUBLIC_BRAINERCE_API_URL=https://api.brainerce.com # Optional: the traffic pixel (/t.js) follows the API URL and is not loaded for a local API # URL (localhost, 127.0.0.1, ::1). Set this only to force a specific host. # NEXT_PUBLIC_BRAINERCE_PIXEL_URL= # Optional: your public site URL (https://shop.example.com), for canonical tags, the sitemap # and robots.txt. Unset, the storefront works its address out per request. Set it on your # hosting provider, and set it on hosts that hide the real hostname (OpenAI Sites). # NEXT_PUBLIC_SITE_URL is still read as an alias. # SITE_URL= # Optional: set to 0 to turn off the server-side cache of public catalog reads. # BRAINERCE_PUBLIC_CACHE= # Optional: floating WhatsApp button. Nothing shipped reads this today; it is a naming # convention for a button you build. Digits only, international format, no "+". # NEXT_PUBLIC_WHATSAPP_PHONE= # Only `npm run connect` reads these (CI and scripted setups): BRAINERCE_CONNECTION_ID, # BRAINERCE_CLIENT_NAME and BRAINERCE_SEED_PRODUCTS. They are not app configuration.