Files
ipal-kit/docs/agent/skills/ipal-reference/SKILL.md
T
Radosław SmolińskiandClaude Opus 5.5 5a07c42f76 Gap fixes: top-level searchSettings, public shouldLoadGoogle, consent/stats collection overrides
- ipalKit({ searchSettings }): switches off / reshapes Site Settings → Search & AI
  without `seo`; read as options.searchSettings ?? options.seo?.searchSettings.
- shouldLoadGoogle moved to a pure module (analytics/shouldLoadGoogle.ts) and
  exported from @intecion/ipal-kit and /client.
- consentLog.collectionOverrides and stats.collectionOverrides (object merges
  access/admin/hooks key by key, function takes over), via the new exported
  applyCollectionOverride / CollectionOverride. The stats view and dashboard
  chart now follow the stats-visits read access, so overrides narrow them too.

All additive; defaults unchanged. Docs: AGENT.md, ipal-reference, consent,
stats, seo, analytics, ipal-setup.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-22 18:54:08 +02:00

31 KiB

name, description
name description
ipal-reference Complete map of everything @intecion/ipal-kit provides — every ipalKit plugin option (with defaults, what it adds and how to turn it off or override it), every env var the code reads, every route, the proxy, the layout components, every admin import-map entry, the hooks, collections, globals and endpoints the plugin injects by itself, and every file the project wires on its own (payload.config, proxy, instrumentation, next.config, lib/content, layout, catch-all page, SEO/GEO routes, Pages/Media hooks, forms, consent, stats, storage, e-mail), each with a minimal example and a concrete check — plus an index of every export with its import path (resources/api.md). Use before writing any feature yourself, when wiring a module, or when asked "does ipal-kit have X".

ipal-reference

How to use

  • Look here first, then at the code. Looking for a function → grep -n "<word>" resources/api.md (resources/api.md — every export: import, what it does). Module description: node_modules/@intecion/ipal-kit/docs/<page>.md (the "details" column).
  • The plugin helps, never limits: every module can be turned off, every default can be overridden, the project config wins, the building blocks (build*, create*) are exported — compose your own version from them.
  • Missing option / behaviour that does not match the docs → skill ipal-plugin-gap (report). Never patch node_modules.
  • Described per the 1.12.x code. "currently always" = no option to turn it off today (gap → ipal-plugin-gap).

1. ipalKit({...}) options (IpalOptions, dist/types.d.ts)

option default what it adds / changes how to turn off / override
i18n (required) — config.localization (always overwritten); validated right away in ipalKit() (throws on a bad config) one source: src/i18n.config.ts; your own localization in the config gets overwritten anyway
i18n.defaultLocale — localization.defaultLocale, / redirect in the proxy must be in locales
i18n.fallback true localization.fallback false
i18n.locales[] { code, label, rtl? } — list of languages (min. 1); rtl: true → rtl in Payload adding a language: skill ipal-locale-add
access none roles field (user < editor < admin, saveToJWT) in the auth collection omit → no roles: every logged-in account passes the plugin's admin/editor checks (userMeetsRole): Site Integrations, the e-mail test, stats, consent-records, settings globals, form-submissions. Narrow them with globalOverrides / collection overrides
access.authCollection — (required in access) collection that gets roles; also the slug of the injected auth collection your own collection with that slug wins
access.defaultRole 'user' defaultValue of the roles field 'editor' / 'admin'
access.authAccess { create: adminOnly, delete: adminOnly, read: adminOrSelf, unlock: adminOnly, update: adminOrSelf } access of the auth collection the plugin injects (Payload's default lets any logged-in account edit or delete every other account) your keys win, e.g. { read: authenticated }; your own collection with that slug wins whole (give it adminOrSelf / adminOnly yourself)
access.firstUserAdmin true the account made on Payload's "Create first user" screen (/first-register on an empty collection) gets roles: ['admin']; an open sign-up still gets defaultRole false = that account gets what was submitted
adminRoute '/admin' config.routes.admin; stats link and views, IntegrationAlerts the project moves app/(payload)/<route>/ itself and adds the route to the proxy matcher (security.md)
twoFactor none = error @clocklimited/payload-2fa with forceSetup: true (TOTP enforced, also checked in the API) twoFactor: false (discouraged); omitting the option throws [ipal] twoFactor.issuer is required
twoFactor.issuer — (required) name in the authenticator app —
twoFactor.plugin — (required) injected payloadTotp (the plugin does not import the peer) missing function → throws
twoFactor.collectionSlug the panel's login collection (admin.user, else the first auth collection) collection with 2FA; startup fails with [ipal] twoFactor… when it is not an auth collection or differs from admin.user point it at the login collection
twoFactor.allowCollectionMismatch false allows collectionSlug ≠ admin.user (panel users of the other collection then skip 2FA) true only when you protect a second auth collection on purpose
whiteLabel none admin.components.graphics.Logo/Icon (AdminLogo/AdminIcon) from Site Settings + vendor credit omit / false; true = defaults
whiteLabel.settingsSlug 'site-settings' global it reads the logo/name from —
whiteLabel.logoField / iconField / nameField 'logo' / 'favicon' / 'siteName' fields in Site Settings any upload/text field
whiteLabel.titleSuffix none admin.meta.titleSuffix (tab title) —
whiteLabel.credit on IntecionCredit in afterLogin and afterNavLinks false; { text, url } overrides
pages none Site Settings → System Pages (page roles) and Under construction tabs omit → neither tab
pages.slug — (required in pages) the project's pages collection (System Pages relations, construction, IndexNow) —
pages.roles all: homepage, notFound, privacyPolicy, cookiePolicy, termsOfService which assignments to show subset of the array
content none <slug>Archive field in System Pages per collection (entry URL = archive page slug) ignored without pages (no archive fields; IndexNow still works)
content.collections[] { slug, label?, perPage? } label = slug, perPage 10 archive entry; the same value goes to createContentHelpers({ content }) the project creates the collection (skill ipal-collection)
seo none @payloadcms/plugin-seo (meta group + titleOverride), Content/SEO tabs, auto-fill hook omit
seo.collections — (required) collections with meta —
seo.autoFill { title: 'title', content: 'layout', descriptionLength: 155 } beforeChange: empty meta.title/description filled from document fields false; object { title, description, content, descriptionLength }
seo.descriptionCheck on (settingsSlug: 'site-settings', siteDescriptionField: 'siteDescription') UI field MetaDescriptionCheck below the description (empty / duplicated) false; object overrides slug/field
seo.fields [] extra fields in the SEO group —
seo.uploadsCollection 'media' upload collection meta.image relates to any upload collection slug
seo.generateTitle / generateDescription plugin-seo preview / generation in the panel your own function ({ doc }) => string
seo.searchSettings on (also without seo) Site Settings → Search & AI tab: searchVerification.google/bing/yandex (→ <meta> via generatePageMetadata), aiCrawlers.policy + aiCrawlers.rules[] (→ robots.txt via getRobots), localized llmsIntro (→ top of /llms.txt); empty fields change nothing. Postgres: migrate:create after upgrading false = no tab (needs seo; without seo use the top-level searchSettings); (fields) => fields = your own set (keep the names searchVerification, aiCrawlers, llmsIntro or read your own fields in your routes)
searchSettings on same tab as seo.searchSettings, but works without seo; wins over seo.searchSettings false = no tab; (fields) => fields = your own set
— (no option) uploadsCollection: 'media' meta image from the media collection currently always media (gap)
forms none @payloadcms/plugin-form-builder: forms, form-submissions collections omit
forms.adminGroup 'Forms' sidebar group false = Payload default; admin.group in overrides wins
forms.fields.* on: checkbox, checkboxGroup, country, date, email, message, number, radio, select, state, step, text, textarea, time; off: payment block types in the builder (all with "Show only when") <type>: false; a block object replaces it; payment: true does nothing (filtered out) — pass a block object
forms.formOverrides Form/Forms labels, emails readable by logged-in users only overrides the forms collection (fields: ({ defaultFields }) => …, slug, admin, access…) any CollectionConfig
forms.formSubmissionOverrides create: logged-in, read: editor+, delete: admin overrides form-submissions access.create etc. wins
forms.redirectRelationships none collections a form can redirect to ['pages']
forms.emailLayout false beforeEmail with a layout (logo, colour, footer) + Site Settings → Emails tab; {{*:table}} readable true
forms.beforeEmail none your own e-mail changes (after the layout) form-builder function
forms.consentFieldName 'consent' name of the GDPR consent field submitForm requires (read from config.custom.ipal) createSubmitAction({ consentFieldName }) / submitForm argument wins
consentLog off consent-records collection + POST /api/ipal/consent (rate limit 20/min) true / { retentionDays } (default 1095)
consentLog.collectionOverrides none changes consent-records: an object merges access / admin / hooks key by key (your keys win), a function (collection) => collection takes over (keep the slug) e.g. { access: { read: ({ req }) => req.user?.email === '[email protected]' } } — narrows who reads records in a project without roles
stats off stats-visits collection, POST /api/ipal/hit, /<admin>/stats view, nav link, dashboard chart true / object
stats.collectionOverrides none changes stats-visits like consentLog.collectionOverrides; its access.read also decides who sees the stats view and dashboard chart object or function
stats.retentionDays / timeZone / dashboard 90 / 'Europe/Warsaw' / true retention, day boundary, StatsWidget dashboard: false hides the chart
indexNow false afterChange hook (publish → IndexNow, production + https only) in the pages.slug ?? 'pages' collection and each one from content true + indexnow-key.txt route
siteSettingsFields none Custom tab in Site Settings Field[]
integrationsFields none Custom tab in Site Integrations Field[]
globalOverrides none changes the plugin's globals (site-settings, site-integrations, cookie-settings, notifications): an object merges access / admin / hooks key by key (your keys win, your hooks run after the plugin's), other keys replace; a function (global) => global takes over e.g. { notifications: { access: { update: authenticated } } }; the way to change the plugin globals' access or hooks
revalidatePath none revalidatePath from next/cache (injected): saving any plugin global revalidates the whole layout (buildGlobalRevalidateHook) omit = globals change after the ISR window; once: context: { disableRevalidate: true }
enabled true false → collections, globals and fields stay (schema and migrations unchanged), but no plugin endpoints (/api/ipal/*), no onInit work and no admin components; i18n is validated anyway false; check: payload migrate:create after switching produces no DROP TABLE

2. What the plugin adds by itself

element what controlled by turning off today
auth collection (users) { slug, auth: true, useAsTitle: 'email' }, when the project has none (slug: access.authCollection → twoFactor.collectionSlug → admin.user → 'users'); with access: create/delete/unlock admin only, read/update admin or self access.authAccess; your own collection with that slug yours wins
forms, form-submissions form-builder + ipal blocks step, checkboxGroup, time forms omit forms
consent-records proof of consent (id, choices, policy version; consentLog.collectionOverrides) consentLog off by default
stats-visits visits without IP (admin reads/deletes; stats.collectionOverrides) stats off by default
global site-settings General, Theme, [System Pages], [Emails], [Under construction], Search & AI, [Custom]; public read, write editor+ pages, content, forms.emailLayout, searchSettings / seo.searchSettings, siteSettingsFields always present; access/hooks/fields: globalOverrides
global site-integrations Analytics, Turnstile, SMTP, IndexNow, [Custom]; admin only integrationsFields always present; globalOverrides
global cookie-settings banner texts, categories, cookie list; public read, write editor+ globalOverrides always present; globalOverrides
global notifications form messages per language; public read, write editor+ globalOverrides always present; globalOverrides
global revalidation hook afterChange on the four globals → revalidatePath('/', 'layout') revalidatePath omit revalidatePath
POST /api/ipal/test-email SMTP/Graph test (admin only) — currently always
POST /api/ipal/consent saves consent consentLog off by default
POST /api/ipal/hit page view for stats stats off by default
localization from i18n i18n currently always
routes.admin from adminRoute adminRoute —
beforeChange meta auto-fill hook in seo.collections seo.autoFill autoFill: false
afterChange IndexNow hook pages + content indexNow off by default
onInit Cookie Settings button migration + log [ipal] Plugin initialized. (your onInit runs first) — currently always

Import map (@intecion/ipal-kit/admin#…) — after every option change: pnpm generate:importmap (pnpm payload generate:importmap), otherwise the panel is blank / a component is missing.

component where condition
AdminLogo, AdminIcon graphics.Logo/Icon whiteLabel
IntecionCredit afterLogin, afterNavLinks whiteLabel and credit !== false
StatsNavLink, StatsView (views.ipalStats, /stats), StatsWidget (beforeDashboard) nav, view, dashboard stats (dashboard: false without the widget)
IntegrationAlerts beforeDashboard currently always (renders nothing when everything works)
IntegrationStatusBanner UI field in the Site Integrations tabs always (with the global)
MaskedField SMTP / Turnstile secrets always
TestEmailButton Site Integrations → SMTP always
MetaDescriptionCheck below meta.description seo and descriptionCheck !== false
RowLabel array row labels only when the project uses rowLabel(...) (admin-ui)

3. What the project wires itself

Mandatory set: AGENT.md §0b, skill ipal-setup; checks: ipal-audit, ipal-seo-check. $U = NEXT_PUBLIC_SERVER_URL (e.g. http://localhost:3000).

element file minimal example how to check details
plugin src/payload.config.ts plugins: [ipalKit({ i18n: i18nConfig, access: { authCollection: 'users' }, twoFactor: { issuer, plugin: payloadTotp }, … })] pnpm dev → log [ipal] Plugin initialized. PROGRAMISTA §2.3
languages src/i18n.config.ts export const i18nConfig = { defaultLocale: 'pl', locales: [{ code: 'pl', label: 'Polski' }] } as const satisfies I18nConfig curl -sI $U/ → 3xx to /pl i18n.md
proxy src/proxy.ts export const proxy = createProxy(i18nConfig, { NextResponse, markdown: true }) + export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] } (a literal!) curl -sI $U/ → /pl; curl -s -H 'Accept: text/markdown' $U/pl → Markdown i18n.md, PROGRAMISTA §2.6
proxy (Next 15 / custom) middleware/proxy.ts createLocaleMiddleware({ config, … }) (/next/middleware or the main entry) as above i18n.md
env validation src/instrumentation.ts if (process.env.NEXT_RUNTIME === 'nodejs') assertEnv(ipalEnvRules({ storage: true, ipHeader: true })) from @intecion/ipal-kit/env remove a variable → startup fails with the list of missing ones env.md
Next config next.config.ts withPayload({ images: buildImagesConfig(), htmlLimitedBots: /Googlebot|Bingbot…/i, headers: async () => [{ source: '/:path*', headers: buildSecurityHeaders({ hsts }) }, ...buildUploadSecurityHeaders()] }) curl -sI $U/pl | grep -i 'x-content-type|strict-transport' security.md, storage.md, PROGRAMISTA §2.9
CSP next.config.ts buildCsp({ mode: 'report-only', … }) → later enforce browser console without violations security.md
data / routes src/lib/content.ts export const { … } = createContentHelpers({ config, content, i18n: i18nConfig, baseUrl, markdownAlternate: true, summaryField: 'aiSummary', mcp: { serverName } }) pnpm tsc --noEmit frontend.md, PROGRAMISTA §2.7
layout app/(frontend)/[locale]/layout.tsx const shell = await getSiteShell(locale); <SiteProviders shell={shell} logEndpoint="/api/ipal/consent" banner={<CookieBanner equalChoice settings="detailed" />} theme stats> HTML: <script type="application/ld+json"> (WebSite+Organization), cookie banner frontend.md, consent.md
theme layout <SiteProviders theme> (or <ThemeScript {...shell.theme} /> from /rsc), <html suppressHydrationWarning>; switcher <ThemeSwitcher> (/client) data-theme on <html> before hydration theme.md
catch-all app/(frontend)/[locale]/[[...slug]]/page.tsx export const revalidate = 3600; const route = createPageRoute(content, { blocks, notFound, permanentRedirect, blockProps }); export default route.Page; generateMetadata, generateStaticParams curl -s $U/pl/<slug> 200; change the slug → the old one gives 308 frontend.md, pages.md
404 [locale]/not-found.tsx + notFoundView.ts export default createNotFoundPage(content, { load: loadNotFoundView }); 'use server' renderNotFoundView(content, { blocks }, locale) curl -sI $U/pl/xyz → 404 with content from System Pages pages.md
sitemap app/sitemap.xml/route.ts export { sitemapRoute as GET } from '@/lib/content' + dynamic = 'force-dynamic' (or sitemap.ts with sitemap — never both; only sitemapRoute splits a large site into a <sitemapindex> with ?part=N parts above 10 000 URLs) curl -s $U/sitemap.xml (hreflang, XSL style); curl -sI → Cache-Control: public, max-age=0, s-maxage=3600…; a database error → 503 + Retry-After seo.md
robots app/robots.ts export { getRobots as default } from '@/lib/content' + force-dynamic (AI crawler policy from Site Settings → Search & AI); robots (sync) ignores the panel curl -s $U/robots.txt (Sitemap:, AI bots, User-agent groups from the panel) seo.md
manifest app/manifest.ts export { manifest as default } + force-dynamic curl -s $U/manifest.webmanifest seo.md
llms app/llms.txt/route.ts, app/llms-full.txt/route.ts export { llmsRoute as GET } / llmsFullRoute + force-dynamic curl -s $U/llms.txt seo.md
Markdown app/md/[locale]/[[...slug]]/route.ts export { markdownRoute as GET } + force-dynamic curl -s $U/md/pl content.md
MCP app/api/mcp/route.ts export { mcpGET as GET, mcpPOST as POST } + force-dynamic curl -s -X POST $U/api/mcp -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' mcp.md
health app/api/health/route.ts export { healthRoute as GET } + force-dynamic curl -s $U/api/health → "status":"ok" (503 on a database error) deployment.md
IndexNow key app/indexnow-key.txt/route.ts export { indexNowKeyRoute as GET } + force-dynamic curl -s $U/indexnow-key.txt = the key seo.md
search (optional) app/api/search/route.ts export const GET = createSearchRoute({ getCachedPayload, config: i18nConfig, baseUrl, isPathVisible }) (isPathVisible from @/lib/content — hides pages under construction) curl -s "$U/api/search?q=test&locale=pl" content.md
Pages src/collections/Pages.ts buildSlugField({ from: 'title' }), buildNoindexField(), buildSummaryField(), slugHistory field + trackSlugHistoryHook, buildRevalidateHook({ revalidatePath, config }) → afterChange/afterDelete edit in the panel → the page refreshes without a deploy slug.md, hooks.md, seo.md
Pages — protection as above beforeDelete: [buildPreventDeleteSystemPage({ settingsSlug: 'site-settings' })]; setPublishedAtHook, buildCrossLocaleFieldSync(...) as needed delete the homepage → error hooks.md
Media src/collections/Media.ts upload: { focalPoint: true }, hooks.beforeOperation: [normalizeFilenameHook, buildOptimizeUploadHook(), buildMediaPlaceholderHook()], fields buildOptimizeUploadField(), buildMediaPlaceholderField(), alt upload Zdjęcie Ś.JPG → zdjecie-s.jpg, placeholder in the document media.md
image on the frontend Media primitive <Image {...mediaImageProps(media, { sizes })} />, video videoProps blur before load media.md
storage payload.config.ts buildR2Storage(['media'], { s3Storage }) — always (without R2_* = local disk) upload → URL from R2_PUBLIC_URL storage.md
e-mail payload.config.ts email: mailAdapter() (SMTP from the panel / Graph from env; also panelSmtpAdapter, graphAdapter, sendEmail from /server) Site Integrations → SMTP → Send test email.md
forms — action app/(frontend)/[locale]/actions.ts 'use server'; export const sendForm = createSubmitAction({ getCachedPayload, headers }) (/server) submit → document in Form Submissions + e-mails forms.md, skill ipal-form
forms — render form block <RenderForm form={form} action={sendForm} locale={locale} texts={formTexts} classNames={formClasses} /> (/rsc) form from the panel, Turnstile, message from Notifications forms.md
Turnstile panel / env SiteProviders wires TurnstileProvider; keys in Site Integrations → Turnstile or env; server: verifyTurnstile (/server) widget in the form; dashboard alert on a bad key turnstile.md
consent layout + policy page banner via SiteProviders; table <CookieTable rows={…} labels={…} /> (/rsc) from getCookieTable ipal-consent-check; delete the consent cookie → the banner comes back consent.md
proof of consent config + layout consentLog: true + logEndpoint="/api/ipal/consent" after a click, a document in Consent Records consent.md
stats config + layout stats: true + <SiteProviders stats={{ locale }}> (or <PageStats locale /> inside ConsentProvider) /<admin>/stats; POST /api/ipal/hit request in Network stats.md
analytics layout SiteProviders wires Analytics (ID from Site Integrations → Analytics); Consent Mode: analytics={{ consentMode: 'basic' }} = no request to Google before consent, default 'advanced' = the Google tag loads at once with every signal denied Meta/other pixels only after consent; in basic no gtm.js / gtag/js in Network before consent analytics.md, gtm-meta-pixel.md
extra JSON-LD layout / lib/content jsonLd={[buildNavigationJsonLd(…)]}; siteJsonLd → buildLocalBusinessJsonLd Rich Results Test seo.md
links and navigation components buildLinkField/buildLinksField in fields; resolveNav, resolveLink, getSystemLinks a menu link still works after a slug change links.md, skill ipal-nav
blocks src/blocks/registry.ts blocks for createPageRoute; fields buildSectionHeaderField, buildSectionSettingsField block visible on the page blocks.md, skill ipal-block
languages in the header header <LanguageSwitcher> (/client), <AlternateLinksUpdater> switches to /en/<slug-en> i18n.md
Tailwind styles.css @import "@intecion/ipal-kit/fluid.css"; + @source "…/node_modules/@intecion/ipal-kit/dist/**/*.js"; the cookie banner is styled PROGRAMISTA §2.5
/its panel app/(payload)/its/… adminRoute: '/its' + its in the proxy matcher /its login, /admin 404 security.md
skills package.json "ipal:skills": "ipal-skills" .agents/skills/ up to date PROGRAMISTA §2.1a

createContentHelpers keys (exports of @/lib/content) — all lazy and cached per request:

key use
getCachedPayload await getCachedPayload() — Local API (actions, routes)
getSettings(locale) Site Settings (depth: 1: relations as documents, theirs as ids; settingsDepth option changes it)
getConfiguredLocales() layout: notFound() for an unknown language
resolveRoute, getEntries, getNotFoundPage, resolvePageRedirect your own page / archive instead of createPageRoute
generatePageMetadata, generateStaticParams, getPageJsonLd used by createPageRoute; call by hand in your own pages
getSiteShell(locale) layout → SiteProviders shell
getFormTexts(locale) blockProps for forms
getLinkOptions, getHomeSlug, resolveLink, resolveNav, getSystemLinks header, footer, CMSLink
getConstructionMode under-construction mode (construction.md)
isPathVisible(path, locale) false for a page construction mode hides; wired into markdownRoute and mcpPOST already, pass it to createSearchRoute
sitemap, sitemapRoute, robots, getRobots, manifest, llmsRoute, llmsFullRoute, markdownRoute, mcpGET, mcpPOST, healthRoute, indexNowKeyRoute re-exports in app/ (table above)
i18n the I18nConfig passed in

createContentHelpers options (baseUrl, pagesSlug, settingsSlug, redirectCollections, markdown, markdownAlternate, mcp, pageJsonLd, robots (incl. aiBotRules), settingsDepth, siteJsonLd, sitemapEntries, sitemapImages, sitemapOptions (maxUrls, cacheControl, memoSeconds), sitemapStyle, summaryField, underConstructionSeo) and what throws without i18n: frontend.md. SiteProviders props: shell, banner, cookieButton, analytics, cookieMap, jsonLd, logEndpoint, preconnect, stats, theme — replace any part or set it to false.

4. Environment variables

.env in dev, the hosting runtime (Coolify) in production, .env.example without values in the repo. Validation: ipalEnvRules(features).

variable required when effect when missing where to set
DATABASE_URI always (Payload; ipalEnvRules always) no database, startup fails env (name: databaseVar)
PAYLOAD_SECRET always Payload does not start; assertEnv throws env, ≥32 characters, different in prod (secretVar)
NEXT_PUBLIC_SERVER_URL always (kind: 'url') sitemap/robots/canonical/JSON-LD/llms with origin '' (relative), IndexNow does not send, R2 relative URL without a prefix env (serverUrlVar)
NODE_ENV no (development/production/test) production is stricter: R2 and IPAL_IP_HEADER required, IndexNow works, IP warning, buildImagesConfig prod set by Next / hosting
R2_BUCKET, R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY storage: true + production, or when at least one is set (all or none) local disk (in prod files disappear on redeploy); incomplete set → warning env
R2_PUBLIC_URL optional; required only with ipalEnvRules({ storage: { requirePublicUrl: true } }) (then like the other R2_*); absolute URL in prod when set empty (default) → media served by the app at /api/media/file/… (Media needs access.read: () => true); set it only for a media domain on Cloudflare (storage.md); R2_PUBLIC_URL alone in dev = media read-only; /media allowed outside prod; also used by buildImagesConfig, MediaPreconnect, CSP env
GRAPH_TENANT_ID, GRAPH_CLIENT_ID, GRAPH_CLIENT_SECRET, GRAPH_SENDER emailGraph: true / Graph transport in the panel mailAdapter falls back to SMTP from the panel (logged) env (agency Exchange)
NEXT_PUBLIC_TURNSTILE_SITE_KEY, TURNSTILE_SECRET_KEY turnstile: true (names: siteKeyVar/secretVar) fallback for keys from Site Integrations → Turnstile; neither set → Turnstile off panel (takes precedence) or env
INDEXNOW_KEY no key from Site Integrations → IndexNow (generated) env or panel
IPAL_IP_HEADER ipHeader: true + production rate limit trusts any IP header (spoofing) + warning in prod env: cf-connecting-ip (Cloudflare) / x-forwarded-for (Traefik/nginx)
IPAL_NOINDEX no; 1/true/yes staging/preview only — (when set: robots Disallow, meta noindex, X-Robots-Tag, IndexNow sends nothing) staging env
NEXT_PHASE set by Next only tells next build from runtime: during the build an unreachable database gives an empty sitemap; at runtime the sitemap throws (route → 503) do not set by hand
NEXT_RUNTIME set by Next instrumentation.ts checks for nodejs; missing (scripts, seed) → buildRevalidateHook does not revalidate do not set by hand

Details: env.md, deployment.md, PROGRAMISTA §3.

DNS (A/AAAA, www, CAA, Search Console TXT, Bing, SPF/DKIM/DMARC for the From domain, R2 domain): the plugin sets nothing — list of records to check with dig: deployment.md §6, summary in ipal-setup stage 11.

Seeding (content in pages, forms, globals): create-only, matched by a natural key, never delete, never seed users or secrets, dry run → backup → real run; updates on production only for untouched records and only with IPAL_SEED_ALLOW_PROD_UPDATE=1. Helper: createSeeder from @intecion/ipal-kit/seed (resources/api.md → Seeding). Templates: ipal-site/resources/seed-content.template.ts, ipal-form/resources/seed-form.template.ts. Rules and Coolify steps: node_modules/@intecion/ipal-kit/docs/seeding.md.

Seed env var (run time) Effect
SEED_DRY_RUN=1 (or --dry-run) no writes, print the plan
SEED_UPDATE=1 also update records nobody edited since seeding
IPAL_SEED_ALLOW_PROD_UPDATE=1 allow SEED_UPDATE=1 on production / a non-local database (back up first)
SEED_FORCE=1 with SEED_UPDATE=1: overwrite edited records too — local database only
SEED_LOCAL_HOSTS extra hosts that count as a local database (comma-separated)
SEED_DB_URL_ENV name of the env var holding the database URL (default DATABASE_URI)
SEED_UNTOUCHED_SECONDS "untouched" window for the timestamp check (default 120)
SEED_HASH_FIELD hash field name (default seedHash; empty = timestamps only)
SEED_NOTIFY_EMAIL form seed: notification address on a first run