From 2eb1ba4d2125d0b56e2b0c4d0265d0350abc1c6e Mon Sep 17 00:00:00 2001 From: Kai Vandivier Date: Mon, 11 Dec 2023 13:03:25 +0100 Subject: [PATCH] fix: don't open browser for plugins on start --- cli/src/commands/start.js | 2 +- cli/src/lib/plugin/start.js | 2 -- examples/pwa-app/d2.config.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/src/commands/start.js b/cli/src/commands/start.js index 6b89e3ed3..f2255b53d 100644 --- a/cli/src/commands/start.js +++ b/cli/src/commands/start.js @@ -136,7 +136,7 @@ const handler = async ({ if (config.entryPoints.plugin) { const pluginPort = await detectPort(newPort + 1) reporter.print( - `The plugin is now available on port ${pluginPort}` + `The plugin is now available on port ${pluginPort} at /${paths.pluginLaunchPath}` ) reporter.print('') diff --git a/cli/src/lib/plugin/start.js b/cli/src/lib/plugin/start.js index b94ea9730..09d378262 100644 --- a/cli/src/lib/plugin/start.js +++ b/cli/src/lib/plugin/start.js @@ -21,8 +21,6 @@ module.exports = async ({ port, config, paths }) => { { port, host, - // open browser - open: [`/${paths.pluginLaunchPath}`], client: { logging: 'none', overlay: { diff --git a/examples/pwa-app/d2.config.js b/examples/pwa-app/d2.config.js index 2b6efe325..92fbbe002 100644 --- a/examples/pwa-app/d2.config.js +++ b/examples/pwa-app/d2.config.js @@ -14,7 +14,7 @@ const config = { entryPoints: { app: './src/App.js', // Uncomment this to test plugin builds: - // plugin: './src/components/VisualizationsList.js', + plugin: './src/components/VisualizationsList.js', }, }