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:
co-authored by
Claude Fable 5.2
parent
926ba4a67e
commit
3d5106bc4a
@@ -97,6 +97,12 @@ whose messages name the `IAPL_` spelling). Set one of the two; `iapl-doctor` (`l
|
||||
set with different values. For your own rules: `{ name: 'NEW_NAME', aliases: ['OLD_NAME'] }` reads the old
|
||||
name the same way. `ipalEnvRules` is the old name of `iaplEnvRules` and still exported.
|
||||
|
||||
Reading one of the plugin's variables in your own code: `readEnv('IAPL_NOINDEX')` (from `@intecion/ipal-kit/env` or the
|
||||
root) returns the `IAPL_` value, else the `IPAL_` one; `legacyEnvName('IAPL_NOINDEX')` is `'IPAL_NOINDEX'`. The exported
|
||||
name constants (`SITE_NOINDEX_ENV`, `COOKIE_SCAN_URL_ENV`, `COOKIE_SCAN_TOKEN_ENV`) hold the `IAPL_` spelling since
|
||||
1.17.0, so `process.env[SITE_NOINDEX_ENV]` alone no longer sees a variable set under the old name — use `readEnv`
|
||||
(or `isSiteNoindex()`).
|
||||
|
||||
The plugin also reads (outside the preset — add your own rules if you want to validate them):
|
||||
`INDEXNOW_KEY` (seo.md), `IAPL_NOINDEX` (`1`/`true`/`yes` — staging, seo.md), `IAPL_DOCTOR_TOKEN` (≥ 32 characters —
|
||||
turns `GET /api/ipal/doctor` on, doctor.md). Full table:
|
||||
|
||||
Reference in New Issue
Block a user