Skip to content

Commit 9703141

Browse files
fix: restore monorepo dev server support
1 parent fd5def5 commit 9703141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)