For keys with same name, priority is:
- Notion Config page
- Environment variables
- Local files (
blog.config.js/conf/*.config.js)
- Split large config sections into
conf/*.config.js - Keep
blog.config.jsmostly as aggregator - For each new config key, document:
- default value
- env var name
- Notion Config same-name key
Usually should never be committed:
.env.local- private token/key content
- personal ad/analytics IDs as defaults
- personal-only menu/theme defaults
If task is a small bug fix, do not casually reformat/sort many config files.
At minimum update:
- comment in config file
- docs or PR description usage notes