Skip to content

docs(contributing): fix broken local-dev setup steps#506

Open
TerrifiedBug wants to merge 1 commit into
mainfrom
review/contributing-dev-setup
Open

docs(contributing): fix broken local-dev setup steps#506
TerrifiedBug wants to merge 1 commit into
mainfrom
review/contributing-dev-setup

Conversation

@TerrifiedBug

Copy link
Copy Markdown
Owner

Problem

The Development Setup section was broken for new contributors (found during a DX review — see review/uxdx__core.md):

  1. cp .env.example .env — there is no root .env.example; the maintained template is docker/server/.env.example.
  2. The "Key variables" table required ENCRYPTION_KEY, which the app does not read. The real variable is VF_ENCRYPTION_KEY_V2, and it is optional (derived from NEXTAUTH_SECRET when unset — see src/lib/env.ts).
  3. The pnpm prerequisite said 9.x, but packageManager pins pnpm@10.13.1.

A new contributor following the guide verbatim could not boot the app.

Change

Docs-only. Points the env step at docker/server/.env.example, corrects the encryption-key variable name and its optionality, and bumps the pnpm prerequisite to 10.x. Node stays at 22.x to match CI.

No code touched — tests/build unaffected. Verified docker/server/.env.example exists and VF_ENCRYPTION_KEY_V2 is the variable read by src/lib/env.ts.

The setup guide pointed at a root .env.example that does not exist and
listed an ENCRYPTION_KEY variable the app does not read, so a contributor
following it verbatim could not boot.

- copy the maintained template from docker/server/.env.example
- replace ENCRYPTION_KEY with VF_ENCRYPTION_KEY_V2 (optional; derived from
  NEXTAUTH_SECRET when unset)
- bump the pnpm prerequisite to 10.x to match packageManager (pnpm@10.13.1)
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant