Repository navigation
chore(dev): make the dev app build and drop the unused mongodb adapter - #175
Merged
Merged
Conversation
`next build dev` failed: dev/app/page.tsx had no root layout, and the type check failed because dev/payload-types.ts narrowed Payload's types for the plugin source too. Move the home page under the (frontend) layout, generate the types without the `declare module 'payload'` block, regenerate the stale payload-types.ts, and fix the remaining dev type errors. Add `pnpm dev:build` and run it in CI. Remove the @payloadcms/db-mongodb devDependency: nothing imports it and the dev app only uses SQLite. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dev-only changes; nothing in the published package changes.
Dev playground:
next build devworks againdev/app/page.tsxsat outside both route groups, so it had no root layout. Moved todev/app/(frontend)/page.tsx(still serves/, redirects to/dashboard).dev/payload-types.tsended withdeclare module 'payload' { interface GeneratedTypes extends Config {} }, which narrows Payload's types for every file in the program, including../src. The plugin takes collection slugs as plain strings, so it cannot compile under that narrowing. The dev config now setstypescript.declare: false(andautoGenerate: false, so types only change throughpnpm dev:generate-types), andpayload-types.tsis regenerated; it was stale (Payload 3.94 addspayload-kv, widgets, etc.).next/linkdoes not type-check as a JSX component under the repo'snodenextresolution (which Turbopack needs to resolve the.jsimport specifiers), so the two playground pages use plain<a>; the test-email route readpayload.mailingwith an invalidincheck;dev/tsconfig.jsonturns offcomposite/declarationinherited from the root config (the app emits nothing, and declarations forimportMap.jscannot be named).dev/next-env.d.tsis what Next 16 generates now.pnpm dev:build, run as a CI step so the playground does not break silently again.Unused devDependency
@payloadcms/db-mongodbremoved. Nothing insrc/,dev/, scripts, configs or workflows imports it; the dev app and the tests use@payloadcms/db-sqliteonly.Checks
pnpm lint,pnpm typecheck,pnpm test,pnpm test:int,pnpm buildandpnpm dev:buildpass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU