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>
scripts/check-ports.sh checks a port list or a compose file (locally or on a
remote host over SSH) before anything is built or started; a port counts as
owned only by the same compose project and service. deploy.sh runs it before
the build; tests are part of the pre-deploy suite. Found: the dev compose
clashes on llmdev (3001: step, 8081: mozdit staging).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Payload db-postgres (uuid ids, no push), fresh baseline migration, one-off
lossless data migration from the staging MongoDB, Compose per the llmdev Docker
spec, pg_dump backups, Node 22 for the Payload CLI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>