Retire legacy team/config/settings.example.js + local settings.js usage and standardize on shared webroot configuration with docker/.env.example and docker/.env.
teamruns as a submodule inside each site's webroot.- The Rust API already reads from
../docker/.env. - A single shared env file avoids duplicate API/database/OAuth settings across submodules.
- This aligns with
team/AGENTS.mdstartup and server guidance.
- Team frontend and backend config loading
- Team docs and setup UX
- Admin SQL panel fallback behavior
- Error/help messages that still mention
settings.js
- Backend paths already target
../docker/.envinteam/src/main.rs. - Legacy references remain in:
team/config/settings.example.jsteam/admin/sql/panel/db-admin.jsteam/README.mdand panel/docs references.gitignoreentries forconfig/settings.js
- Update
team/README.mdto positionteamas a webroot submodule. - Replace
config/settings.jssetup guidance withdocker/.envsetup. - Update
team/admin/sql/panel/README.mdto prioritizedocker/.env. - Add a short migration note in
team/config/settings.example.jspointing to../docker/.env.
- Update
team/admin/sql/panel/db-admin.jsUI copy:- Prefer
.envwording oversettings.js - Keep compatibility fallback while migration is active
- Prefer
- Ensure frontend config loading order is explicit:
- Rust API values sourced from
docker/.env - Optional browser-local overrides
- Legacy
settings.jsonly as temporary fallback
- Rust API values sourced from
- Add console warnings when legacy
settings.jspath is used.
- Remove runtime dependency on
settings.jsafter verification. - Delete
team/config/settings.example.jsif no active consumers remain. - Remove
config/settings.jsignore lines from relevant.gitignorefiles. - Update any start/setup scripts that still reference
settings.js.
- Verify
cargo run --bin partner_tools -- servestarts with only../docker/.env. - Verify setup pages correctly detect
.envvalues through API endpoints. - Verify SQL admin panel reports
.envsource correctly. - Smoke-test OAuth and Gemini key detection paths.
- Keep
teamusage documented from webroot context (cd <site-webroot>/team). - Use
localhostfor local URLs where possible. - For long-running dev server, use background-safe pattern from
team/AGENTS.md. - Keep docs consistent with shared
docker/.envlocation and naming.
- Add a single helper command in docs for first-time setup:
cp docker/.env.example docker/.env
- Add a status endpoint response field that confirms effective config source.
- Add CI/doc checks to fail if new docs reintroduce
settings.jssetup guidance.