- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms); past CHANGELOG entries and the proposals in docs/dev are not rewritten - AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames - iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required - env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup - skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were - reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated Co-Authored-By: Claude Fable 5.2 <[email protected]>
30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import { assertEnv, iaplEnvRules } from '@intecion/ipal-kit/env'
|
|
|
|
export function register() {
|
|
if (process.env.NEXT_RUNTIME !== 'nodejs') {return}
|
|
// storage: R2 is required in production. ALLOW_LOCAL_MEDIA=1 lets a production build run on local disk for
|
|
// local checks and CI only — never set it in Coolify.
|
|
// @starter:if crawl
|
|
// cookieCrawl: IAPL_COOKIE_SCAN_URL / IAPL_COOKIE_SCAN_TOKEN in production (cookieScanner.crawl, the shared service).
|
|
// @starter:endif
|
|
// databaseName: DATABASE_URI must name example-studiopl_dev / example-studiopl_prod (databaseNamesFor).
|
|
// R2_PUBLIC_URL optional: media are served through the app by default (storage.md, env.md).
|
|
assertEnv(
|
|
iaplEnvRules({
|
|
// @starter:if crawl
|
|
cookieCrawl: true, // IAPL_COOKIE_SCAN_URL / IAPL_COOKIE_SCAN_TOKEN in production — the shared cookie-crawler service
|
|
// @starter:endif
|
|
databaseName: { domain: 'example-studio.pl' },
|
|
// @starter:if graph
|
|
//: emailGraph: true, // GRAPH_* — e-mail through Microsoft Graph
|
|
// @starter:endif
|
|
ipHeader: true,
|
|
// @starter:if r2
|
|
storage: process.env.ALLOW_LOCAL_MEDIA !== '1',
|
|
// @starter:else
|
|
//: storage: false, // media on local disk — a Coolify persistent volume (AGENTS.md → Project decisions)
|
|
// @starter:endif
|
|
}).map((rule) => (rule.name === 'R2_PUBLIC_URL' ? { ...rule, required: false } : rule)),
|
|
)
|
|
}
|