Segment
Integrate Segment to collect analytics and route user data to your preferred analytics destinations.
Get your Segment writeKey
In your Segment workspace, navigate to your Source, then go to Settings > API Keys and copy the Write Key.
Provide the write key at publish time
The ${SEGMENT_WRITE_KEY} syntax reads the key from an environment variable at publish time, so the variable must be present in whatever environment runs fern generate --docs.
When you publish with a GitHub Actions workflow, map the secret into the publish step’s env:
.github/workflows/publish-docs.yml