Skip to content

Commit

Permalink
fix: use dev server plugin env var to define the plugin package name …
Browse files Browse the repository at this point in the history
…or path (#6416)
  • Loading branch information
davbree committed Mar 6, 2024
1 parent e3440b8 commit cee46eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/dev/dev.ts
Expand Up @@ -139,9 +139,9 @@ export const dev = async (options: OptionValues, command: BaseCommand) => {

if (process.env.NETLIFY_INCLUDE_DEV_SERVER_PLUGIN) {
if (options.debug) {
log(`${NETLIFYDEVLOG} Including dev server plugin`)
log(`${NETLIFYDEVLOG} Including dev server plugin: ${process.env.NETLIFY_INCLUDE_DEV_SERVER_PLUGIN}`)
}
settings.plugins = [...(settings.plugins || []), '@netlify/plugin-dev-server']
settings.plugins = [...(settings.plugins || []), process.env.NETLIFY_INCLUDE_DEV_SERVER_PLUGIN]
}

cachedConfig.config = getConfigWithPlugins(cachedConfig.config, settings)
Expand Down

2 comments on commit cee46eb

@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,313
  • Package size: 287 MB
  • Number of ts-expect-error directives: 1,180

@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,313
  • Package size: 287 MB
  • Number of ts-expect-error directives: 1,180

Please sign in to comment.