Skip to main content

Provider env var placeholders

Write only these placeholder names, with an empty or obviously-fake value, into .env.example (or the target's equivalent) — never a real key, and never into a live .env/.env.local file. Prefix with NEXT_PUBLIC_ for a Next.js target (these are read client-side); no prefix needed for Angular (read via environment.ts) or a vanilla Node target (read via process.env server-side).

ProviderEnv var (Next.js)Env var (Angular / vanilla)Config fieldNotes
SegmentNEXT_PUBLIC_SEGMENT_WRITE_KEYSEGMENT_WRITE_KEYwriteKeyAlso needs a caller-supplied analytics/analytics-node client instance (client: field) — not just a key. This skill does not create that client module.
LaunchDarklyNEXT_PUBLIC_LD_CLIENT_IDLD_CLIENT_IDclientSideIdClient-side SDK key, not the server-side SDK key — do not confuse the two.
FullStoryNEXT_PUBLIC_FULLSTORY_ORG_IDFULLSTORY_ORG_IDorgIdOrg ID only; FullStory has no separate write-key concept for this integration.

Example .env.example block (only the rows for providers actually selected in step 2):

NEXT_PUBLIC_SEGMENT_WRITE_KEY=
NEXT_PUBLIC_LD_CLIENT_ID=
NEXT_PUBLIC_FULLSTORY_ORG_ID=