Repository navigation
chore: add .env.example and ignore rules for env, data and key files - #2
Merged
Merged
Conversation
The repository had no environment template and its .gitignore only covered .env*.local, so a plain .env, a database file, a dump or a key file could be committed by accident. - .env.example lists the four variables the site reads, with empty values - .gitignore blocks every env file except the example, local databases, dumps, backups and key files - app/env-contract.test.mjs pins both contracts (4 tests, watched failing first) - docs point to the template; verification and handoff record the run Verified: install, typecheck, lint, test 63/63, build, deploy:dry-run exit 0. Not run: test:e2e, live Vera. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C9QGH3qLAAqc7fEucC
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
gaffercode
deleted the
chore/env-contract-and-ignore-rules-2026-11-21
branch
November 21, 2026 07:51
There was a problem hiding this comment.
🟡 Changes recommended
The verification documentation must disclose that the empty SERVER_ONLY list makes the dry-run check report zero findings without actually verifying the server-only boundary.
1 open issue
What changed in this PR
Gaffer, PR ini menambahkan environment template dan memperluas perlindungan Git untuk konfigurasi lokal Sentraverse Neural, menindaklanjuti audit SV-03 dan SV-04 tanpa mengubah kode aplikasi.
Changes:
- Menambahkan
.env.exampleberisi empat variabel server-only dengan nilai kosong. - Memperluas ignore rules untuk file environment, database lokal, dump, backup, dan kredensial.
- Menambahkan empat contract tests serta memperbarui panduan konfigurasi dan catatan verifikasi.
| File | Description |
|---|---|
README.md |
Mengarahkan penggunaan template dan memperbarui jumlah tes tercatat. |
docs/verification.md |
Mencatat hasil verifikasi dan pemeriksaan yang tidak dijalankan. |
docs/testing.md |
Mendokumentasikan cakupan environment contract tests. |
docs/development.md |
Menambahkan instruksi konfigurasi dari template. |
docs/data.md |
Menjelaskan template variabel tanpa nilai. |
app/env-contract.test.mjs |
Menambahkan tes kelengkapan template, nilai rahasia, dan ignore rules. |
.gitignore |
Memperluas pengecualian file lokal sambil mempertahankan template. |
.env.example |
Menyediakan empat variabel kosong beserta petunjuk konfigurasi. |
.agents/HANDOFF.md |
Mencatat perubahan, verifikasi, dan tindak lanjut sinkronisasi monorepo. |
Review effort: Balanced
| | `lint` | 07:33 | 0 | No findings | | ||
| | `test` | 07:33 | 0 | 63/63 (59 existing, 4 new in `app/env-contract.test.mjs`) | | ||
| | `build` | 07:33 | 0 | Production build written | | ||
| | `deploy:dry-run` | 07:33 | 0 | Artifact present, no server-only names in the client bundle | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
.env.example(new): the four variables the site reads, with empty values..gitignore: every env file except the example, local databases, dumps, backups and key files are now ignored. Before, only.env*.localwas covered, so a plain.envcould be committed by accident.app/env-contract.test.mjs(new, 4 tests): fails when the site reads a variable that is missing from.env.example, when a key or token in the example holds a value, or when one of the ignore rules is removed.docs/data.md,docs/development.mdanddocs/testing.mdpoint to the template;docs/verification.mdand.agents/HANDOFF.mdrecord the run.No application code changed.
Why
Finding SV-03 and SV-04 of the repository data audit (2026-11-21): no environment template, and
.envnot ignored.Verification
testinstall --frozen-lockfile,typecheck,lint,build,deploy:dry-runNot run:
test:e2e, live Vera.Follow-up for the owner
The public tree is published from the monorepo capsule. The same change has to land there, or the next publish drops it.
Generated by Claude Code