Repository navigation
chore(deps): stop auto-installing the unused Next.js peer subtree - #111
Merged
Merged
Conversation
`@payloadcms/richtext-lexical` declares Next.js peers, and `@payloadcms/ui` depends on it with `next` as a required peer, so pnpm installed a whole Next subtree this Vike app never runs. Nine advisories, two of them critical, for code with no entry point here. Neither `pnpm.overrides` nor `peerDependencyRules.ignoreMissing` reaches it: the first rewrites the recorded peer range and leaves the resolved version alone, the second only silences the warning. Both inbound paths close only under the global switch. pnpm audit: 38 advisories (2 critical, 9 high) -> 3 (0 critical, 1 high). Lockfile -973/+153; 88 packages leave. `@photonjs/runtime` re-resolves 0.1.4 -> 0.1.17, pulling `@vercel/[email protected]` and `[email protected]` — the only version change in the diff. Closes #97 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Deploying wemeditate-design with
|
| Latest commit: |
b95aa30
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://17f1c082.wm-design.pages.dev |
| Branch Preview URL: | https://claude-chore-97-no-auto-inst.wm-design.pages.dev |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | b95aa30 | Commit Preview URL Branch Preview URL |
Sep 17 2026, 01:09 AM |
Contributor
|
I could not request a reviewer here, so this is the step left for you.
🤖 sydevs dispatcher |
sydevs-bot
added a commit
that referenced
this pull request
Sep 18, 2026
Cloudflare Pages is red on 797d9c9, and the build log lives only in the Cloudflare dashboard, which a routine cannot reach. The branch forked at 2af1870, three commits back, so the Pages build was still installing the pre-#111 dependency tree: 88 extra packages and a whole unused Next.js subtree. This merge builds against the tree main installs today. It also brings in the two server changes this PR's memos sit on top of: #107 drops `preview` from `getWebConfig`, which `loadSiteContext` calls, and #113 adds `+onCreatePageContext.server.ts`, the error-page path this PR's fork spec describes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B9MPJ8NWXhK85k27xRq6Ji
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.
Closes #97.
@payloadcms/richtext-lexicaldeclares Next.js peers, and@payloadcms/uidepends on it withnextas a required peer, so pnpm installed a whole Next subtree this Vike + Hono app never runs — nine advisories, two of them critical, for code with no entry point here. One line in.npmrcplus the regenerated lockfile.Neither narrower mechanism reaches it.
pnpm.overridesrewrites the recorded peer range and leaves[email protected]resolved, producing an internally inconsistent lockfile with an unchanged audit.peerDependencyRules.ignoreMissingonly silences the warning; it does not gateautoInstallPeers. And a scoped fix has to beat two inbound paths, not one — silencing@payloadcms/nextwould leave@payloadcms/uipullingnextin on its own.Measured on this branch
pnpm auditpnpm lintpnpm typecheckpnpm test:runpnpm buildgrep -rlE "next/dist/|__NEXT_|NextRequest" dist/server dist/clientpnpm install --frozen-lockfileThe three that remain are all pre-existing and unrelated to this subtree:
wrangler>miniflare>sharp— GHSA-rgj7-g3m4-5g8c, high, dev-only.@photonjs/cloudflare>@photonjs/core>ts-deepmerge— GHSA-87mf-gv2c-c62c, moderate.payloadaccount-unlock — GHSA-jg8r-5jh2-v2xj, moderate, no patched version published.Two things for the reviewer
One version actually changes.
@photonjs/runtimere-resolves 0.1.4 → 0.1.17, pulling in@vercel/[email protected]and[email protected]. Those three names are the only version movement in the lockfile; everything else in the diff is peer-suffix rewriting and removals.The switch is global, so five peers nobody asked about also leave —
mapbox-gl,monaco-editor,yjs,sass,@emnapi/core. Each was checked against this repo and none is used:LocationSearch.tsximports onlyuseSearchBoxCore/useSearchSessionfrom@mapbox/search-js-reactand never a GL map,/mapembeds the atlas in an iframe, there is no.scssfile in the repo, andmonaco/yjsare admin-panel and collaborative-editing paths never imported here.skipLibCheck: truekeeps themapbox-glreferences in@mapbox/search-js-web's.d.tsfiles free.Consequence going forward: a peer this app genuinely needs must now be declared as a direct dependency. Worth a line in
AGENTS.mdunder repo-wide conventions — left out of this PR as a separate call (#97 Open questions).Left for review to confirm
LocationSearch, type a partial address, confirm suggestions return — the one criterion that needs a deploy, withmapbox-glnow uninstalled.Shipped by hand rather than by the loop:
.npmrcis on Claude Code's protected-paths list, so the unattended routine could not write it. Sixloop-WeMeditateWebruns stalled on that prompt before this was diagnosed.🤖 Generated with Claude Code