Repository navigation
chore: non versionare observablehq.config.js (artefatto) - #315
Merged
Merged
Conversation
`scripts/generate-config.mjs` lo riscrive a ogni build dai temi e dal catalogo: tenerlo in git significa un file modificato a ogni cambio di dati, che finisce dentro PR che non c'entrano (è successo anche oggi). Verificato con il file assente, come in un clone pulito: `npm run build` lo rigenera (9,3 kB) e costruisce 77 pagine.
OF non attiva la ricerca da solo (default `null`): senza `search: true` il campo non esiste. La riga va nel generatore, non nel file generato — che da questa PR non è più versionato. Verificato: il config generato contiene `search: true`.
Gabrymi93
force-pushed
the
chore/generated-config
branch
from
November 29, 2026 14:28
732623f to
58c50d2
Compare
4 tasks done
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.
Sintesi
observablehq.config.jsè generato dascripts/generate-config.mjsa ogni build, a partire dai temi e dal catalogo. Versionarlo significa avere un file modificato a ogni cambio di dati — e quindi diff che finiscono dentro PR che non c'entrano (è successo anche oggi, sul branch dei progetti).Contesto collegato
Nessuna issue.
Cosa cambia
Cosa entra
.gitignore:observablehq.config.jsVerifiche
npm run buildlo rigenera (9,3 kB) e costruisce 77 paginenpm run build/npm run dev/npm run previewlo generano prima di usarlo (catenapre*inpackage.json)observable buildinvocato da solo ora richiede unnpm run buildprima: è un cambio di abitudine, non un problema dei workflow (che passano tutti dagli script npm)Nota per la review
Se qualche workflow o script esterno chiama
npx observable builddirettamente, va aggiunto unnode scripts/generate-config.mjsprima. Nei due workflow del repo non succede.