- postgresAdapter (uuid ids, no push, prodMigrations), DATABASE_URI
- src/payload.shared.ts: the config without the db adapter, shared with the
one-off MongoDB content transfer
- baseline migration 20260929_200306_initial (86 tables; applied twice on a
disposable PostgreSQL 16: second run is a no-op)
- seed copy (references, hosting plans) moved to src/content/seeds/
- MongoDB data migrations, their helpers/tests and the dead lib/mongodb.ts
removed (kept in git history)
- npm scripts for the Payload CLI (works now that the package is ESM)
Branch only: staging has no PostgreSQL yet (tasks 3.x).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Payload CLI failed with ERR_REQUIRE_ASYNC_MODULE on Node 22 and 26 alike:
without "type": "module" it loaded payload.config.ts as CommonJS and could
not require the top-level-await ESM @payloadcms/richtext-lexical. Following
the official Payload template: "type": "module", CommonJS jest files and the
content schema renamed to .cjs, ESLint globs updated. Next's standalone
server.js is ESM and starts; 516 unit tests, tsc, lint and build are green.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The staging noindex (MITHOME-116) hinges on a build variable; leaking it
into production would silently drop the site from Google. deploy.sh now
refuses to build production when NEXT_PUBLIC_DEPLOY_ENV=staging is set,
and after every deploy runs scripts/check-indexability.sh, expecting an
indexable production and a blocked staging (node tests cover both ways,
stray noindex and unreachable endpoints; added to pre-deploy tests).
A separate Playwright project, production-seo (npm run
test:seo:production), checks robots.txt, that all 12 sitemap URLs are
final/indexable with self canonicals and sitemap hreflangs, SSR content
and links, the / -> /hu redirect and real 404s; host redirects are gated
until the production domain is live. Verified on a production-mode build
of a staging DB copy (5 passed) and failing as expected against staging.
eslint now ignores generated test output (playwright-report, test-results,
coverage), which broke the pre-deploy lint after local e2e runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Payload 3.88.0's peer range for `next` is >=15.2.9 <15.3.0 ||
>=15.3.9 <15.4.0 || >=15.4.11 <15.5.0 || >=16.2.6 <17.0.0 — the
project's previous 15.5.23 fell in the unsupported gap between the
15.4.x and 16.2.x ranges. Upgrading to 16.3.4 (React 19.1.0 stays
compatible) unblocks MITHOME-86.
- next.config.ts: drop the removed `eslint.ignoreDuringBuilds` option
(Next 16 no longer runs ESLint during `next build`)
- eslint.config.mjs: import eslint-config-next's native flat-config
arrays directly instead of bridging through FlatCompat, which threw
"Converting circular structure to JSON" under ESLint 9 with the
upgraded config
- tsconfig.json: Next 16's own migration set `jsx: react-jsx` and added
`.next/dev/types/**/*.ts` to `include`
- ThemeProvider.tsx: suppress two react-hooks/set-state-in-effect
false positives (new rule shipped with eslint-config-next 16) —
these effects intentionally sync state from localStorage/DOM on
mount, there is no subscription to move the setState into
Verified: npm run build, npm run lint, tsc --noEmit, npm test (58
passed) all clean on this change alone, before installing Payload.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- pre-deploy suite now runs tsc --noEmit and eslint; any failure aborts
the release
- fix all TypeScript errors (FooterConfig.copyright removed after the CMS
move; test guards/casts)
- fix all ESLint errors: <a>→<Link> and <img>→<Image> in Header/Footer,
remove unused imports and explicit any in src
- eslint config relaxes no-explicit-any/no-require-imports/no-unused-vars
for test and CommonJS config files (legitimate usage)
Closes MITHOME-81