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
+2 -1
View File
@@ -11,7 +11,8 @@
* 4. a production build with webpack and one with Turbopack.
*
* Needs: the plugin built (`pnpm build`; --skip-plugin-build when dist is current), the tag in the local repository.
* The builds need no database (pages that read it are built on demand), but DATABASE_URI must be set to something.
* The builds read the database (static params), so DATABASE_URI must point at a reachable local MongoDB — an empty
* one is enough (default mongodb://127.0.0.1:27017/example-studiopl_dev, the reference site's local database).
* Options: --tag=v1.16.7 · --only=webpack|turbopack · --skip-build (steps 1–3 only) · --keep (leave the folder).
* The folder (.legacy-site-<tag>, git-ignored) is removed at the end unless --keep.
*/