Repository navigation
fix(docs): restore nuxt peer so root cf deploy uses Wrangler - #7
Merged
Merged
Conversation
PR #4 moved nuxt back into docs dependencies. cf deploy at the monorepo root then runs `pnpm nuxt build`, but nuxt is not on the root PATH. Restore the peerDependency pattern from #2 so generate stays in docs and cf bundles ./dist via Wrangler after Workers Build runs pnpm generate. Co-authored-by: froQ <sayhola@froq.me>
0froq
marked this pull request as ready for review
October 15, 2026 05:19
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.
Problem
Workers Build runs
pnpm generate(passes) thenpnpm exec cf deployat the monorepo root. After PR #4,cf deploytriespnpm nuxt buildand fails:nuxtis only installed for thedocsworkspace package, not on the root PATH. Single-package sites (void, paper-landing) keepnuxtin rootdependencies, so this does not apply there.Fix
Restore the pattern from #2: declare
nuxtas a peerDependency ofdocs(not a root-resolvable dependency). Rootcf deploythen delegates to Wrangler and bundles./distfromwrangler.config.tsafter Workers Build has already runpnpm generate.Verification
Fresh clone at
/opt/buildhome/repo,NODE_VERSION=22, Node ≥ 22.18 forcloudflare.config.ts:generate: 358 routes prerenderedcf deploy --dry-run:Delegating to Wrangler→Dry run complete(624 asset files fromdist)