IAPL rename: readEnv exported, the MCP server name left as it was, legacy:site needs a database

- readEnv / legacyEnvName exported from the root and /env (a project's own code reads IAPL_* with the IPAL_* fallback);
  the name constants hold the IAPL_ spelling — changelog and env.md say so
- createMcpRoute: the default serverName stays 'ipal-site' (clients see it); the scripted step had changed it
- legacy:site: the builds read the database; the script and PROGRAMISTA say which

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:47:11 +01:00
co-authored by Claude Fable 5.2
parent 926ba4a67e
commit 3d5106bc4a
11 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -780,7 +780,7 @@ done until the reference site uses it. Before `npm version`:
and installed against this build without one edit: the old commands run, the doctor reports no error, the
committed import map and `tokens.css` are still current, `tsc` passes, and it builds with webpack and with
Turbopack. This is the proof that an existing site upgrades with no change (`scripts/legacy-site-check.mjs`;
no database needed). With it: `test/legacyNames.test.ts` (every old name) and `test/legacyNameForms.test.ts`
`DATABASE_URI` = a reachable local MongoDB, an empty one is enough). With it: `test/legacyNames.test.ts` (every old name) and `test/legacyNameForms.test.ts`
(no new name is born with the old spelling).
- [ ] **`pnpm e2e:built` green — required, no release without it.** It builds the reference site with webpack AND with
Turbopack (with the late-staff fixture, `E2E_LATE_STAFF=1`) and runs, on each built site: the account rules of