Skip to content

Commit

Permalink
fix: specified dev command should fix the case of multiple detected c…
Browse files Browse the repository at this point in the history
…ommands (#6579)
  • Loading branch information
davbree committed May 13, 2024
1 parent 6887884 commit e48529e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/build-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export const detectFrameworkSettings = async (
buildCommand: command.netlify.config.build.command,
}
}
if (type === 'dev' && command.netlify.config?.dev?.command?.length) {
return {
...settings[0],
devCommand: command.netlify.config.dev.command,
}
}

if (settings.length > 1) {
if (isCI) {
Expand Down

2 comments on commit e48529e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,347
  • Package size: 312 MB
  • Number of ts-expect-error directives: 993

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,347
  • Package size: 312 MB
  • Number of ts-expect-error directives: 993

Please sign in to comment.