Skip to content

Correct .env.example and deployment.md contradictions with the code - #329

Open
joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/156-env-docs-accuracy
Open

joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/156-env-docs-accuracy

Conversation

@joei4cm

@joei4cm joei4cm commented Dec 3, 2026

Copy link
Copy Markdown

Refs #156

Verified each item in the sweep against current main; several were already fixed or belong elsewhere, so this PR covers the ones still wrong.

.env.example

  • SLACK_BOT_TOKEN/SLACK_APP_TOKEN held non-empty {{SECRET_...}} placeholders that satisfy requireEnv and fail later at the Slack API — now empty.
  • DISCORD_TOKEN was labeled "used by discord-mcp" and DISCORD_BOT_TOKEN "used by the discord-bot app". The discord-bot reads DISCORD_TOKEN; DISCORD_BOT_TOKEN is the worker Discord adapter's backward-compat fallback (packages/outpost/shared/src/platforms/registry.ts). Comments corrected.
  • Added POSTMARK_API_KEY/POSTMARK_FROM_EMAIL (required by the EMAIL ticket adapter, registry.ts), plus TEAM_MEMBER_IDS, ON_CALL_MEMBERS, SYNC_ECHO_WINDOW_MS (default 60000) and SMTP_SECURE, all read at runtime but undocumented.

docs/deployment.md

  • HEALTH_PORT: "each with a different fallback" contradicted the table (teams-bot and the worker share 3003) — reworded.
  • Discord env list now includes DISCORD_BOT_TOKEN (optional legacy fallback).

Checked but not changed

Validation: git diff --check clean; prettier --check docs/deployment.md passes (repo config). Docs/env-only change, no code paths touched.

🤖 Generated with Claude Code

.env.example carried Slack token placeholders that satisfy requireEnv and
fail later at the Slack API, labeled DISCORD_TOKEN as the discord-mcp token
and DISCORD_BOT_TOKEN as the discord-bot token (the bot reads DISCORD_TOKEN;
DISCORD_BOT_TOKEN is the worker Discord adapter's legacy fallback), and
omitted POSTMARK_API_KEY/POSTMARK_FROM_EMAIL (required by the EMAIL ticket
adapter), TEAM_MEMBER_IDS, ON_CALL_MEMBERS, SYNC_ECHO_WINDOW_MS and
SMTP_SECURE. docs/deployment.md claimed every HEALTH_PORT consumer has a
different fallback (teams-bot and the worker share 3003) and omitted
DISCORD_BOT_TOKEN from the Discord env list.

Refs CopilotKit#156

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant