Skip to content

fix: strip workspaces before netlify deploy to bypass monorepo detection - #1722

Merged
gansheer merged 1 commit into
apache:mainfrom
gansheer:fix/1718-fix-broken-preview-2
Aug 7, 2026
Merged

fix: strip workspaces before netlify deploy to bypass monorepo detection#1722
gansheer merged 1 commit into
apache:mainfrom
gansheer:fix/1718-fix-broken-preview-2

Conversation

@gansheer

@gansheer gansheer commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Ref #1718

Netlify CLI v26 detects yarn workspaces and refuses to deploy in CI with "Projects detected" error. Both --cwd (broken since v22.1.7, netlify/cli#7528) and --filter + --dir (--dir silently ignored since v22.1.3, netlify/cli#7342) fail to work around it.

Strip the workspaces field from package.json after yarn install and call netlify directly to avoid monorepo detection entirely.

Netlify CLI v26 detects yarn workspaces and refuses to deploy in CI
with "Projects detected" error. Both --cwd (broken since v22.1.7,
netlify/cli#7528) and --filter + --dir (--dir silently ignored since
v22.1.3, netlify/cli#7342) fail to work around it.

Strip the workspaces field from package.json after yarn install and
call netlify directly to avoid monorepo detection entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gansheer
gansheer merged commit 7c534e1 into apache:main Aug 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant