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
+1
-1
@@ -13,5 +13,5 @@
|
||||
* if (process.env.NEXT_RUNTIME === 'nodejs') assertEnv(iaplEnvRules({ storage: true }))
|
||||
* }
|
||||
*/
|
||||
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules, ipalEnvRules } from '../modules/env/index.js'
|
||||
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules, ipalEnvRules, legacyEnvName, readEnv } from '../modules/env/index.js'
|
||||
export type { AssertEnvOptions, EnvKind, EnvRule, IaplEnvFeatures, IpalEnvFeatures } from '../modules/env/index.js'
|
||||
|
||||
+1
-1
@@ -216,7 +216,7 @@ export type { MailAdapterArgs } from './modules/email/mailAdapter.js'
|
||||
export { panelSmtpAdapter } from './modules/email/panelSmtpAdapter.js'
|
||||
export type { PanelSmtpAdapterArgs } from './modules/email/panelSmtpAdapter.js'
|
||||
// Boot-time environment validation (fail fast on misconfigured deploys).
|
||||
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules, ipalEnvRules } from './modules/env/index.js'
|
||||
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules, ipalEnvRules, legacyEnvName, readEnv } from './modules/env/index.js'
|
||||
export type { AssertEnvOptions, EnvKind, EnvRule, IaplEnvFeatures, IpalEnvFeatures } from './modules/env/index.js'
|
||||
export type { FormAttachmentsOption, FormFileScanInput, FormFileScanResult, FormSubmitEndpointOptions } from './modules/forms/attachments/config.js'
|
||||
export { buildFileBlock, fileBlock } from './modules/forms/attachments/fileBlock.js'
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
export { legacyEnvName, readEnv } from '../shared/envName.js'
|
||||
export { assertEnv } from './assertEnv.js'
|
||||
export type { AssertEnvOptions, EnvKind, EnvRule } from './assertEnv.js'
|
||||
export { checkDatabaseName, databaseNameFromUri, databaseNamesFor } from './databaseName.js'
|
||||
|
||||
@@ -71,7 +71,7 @@ export type CreateMcpRouteArgs = {
|
||||
* `false` = off (a limiter in front, e.g. Cloudflare WAF rate limiting).
|
||||
*/
|
||||
rateLimit?: { max?: number; windowMs?: number } | false
|
||||
/** Server name advertised in `initialize`. Default 'iapl-site'. */
|
||||
/** Server name advertised in `initialize`. Default 'ipal-site'. */
|
||||
serverName?: string
|
||||
/** Server version advertised in `initialize`. Default '1.0.0'. */
|
||||
serverVersion?: string
|
||||
@@ -104,7 +104,7 @@ export function createMcpRoute(args: CreateMcpRouteArgs) {
|
||||
getCachedPayload,
|
||||
isPathVisible,
|
||||
maxBatch = 10,
|
||||
serverName = 'iapl-site',
|
||||
serverName = 'ipal-site',
|
||||
serverVersion = '1.0.0',
|
||||
settingsSlug = 'site-settings',
|
||||
summaryField,
|
||||
|
||||
Reference in New Issue
Block a user