Skip to content

Commit 28284c1

Browse files
fix: restore monorepo dev server support
1 parent 6bfabd9 commit 28284c1

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

package-lock.json

Lines changed: 21 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/run-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export async function runNetlifyBuild({
107107
}: { netlifyConfig?: NetlifyConfig; settingsOverrides?: Partial<ServerSettings> } = {}) => {
108108
let cwd = command.workingDir
109109

110-
if (!options.cwd && command.project.workspace?.packages.length) {
110+
if (!options.cwd && command.project.workspace?.packages.length && command.project.workspace.isRoot) {
111111
cwd = join(command.project.jsWorkspaceRoot, settings.baseDirectory || '')
112112
}
113113

0 commit comments

Comments
 (0)