From 50618921c6043ecb950a2163172bcad960918fac Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 2 Jun 2023 11:32:13 +0200 Subject: [PATCH] Configured Portal's dev output to be quieter - this avoids noise in the CLI when you're developing, as we don't care what port the preview server has started on --- .github/dev.js | 2 +- ghost/portal/package.json | 2 +- ghost/portal/vite.config.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/dev.js b/.github/dev.js index 5151f3a2f1..e7fff87be6 100644 --- a/.github/dev.js +++ b/.github/dev.js @@ -79,7 +79,7 @@ if (DASH_DASH_ARGS.includes('portal') || DASH_DASH_ARGS.includes('all')) { prefixColor: 'magenta', env: {} }); - COMMAND_GHOST.env['portal__url'] = 'http://localhost:5368/umd/portal.min.js'; + COMMAND_GHOST.env['portal__url'] = 'http://localhost:4175/portal.min.js'; } if (DASH_DASH_ARGS.includes('signup') || DASH_DASH_ARGS.includes('all')) { diff --git a/ghost/portal/package.json b/ghost/portal/package.json index 73fd30b50b..c299704101 100644 --- a/ghost/portal/package.json +++ b/ghost/portal/package.json @@ -17,7 +17,7 @@ "registry": "https://registry.npmjs.org/" }, "scripts": { - "dev": "concurrently \"vite\" \"yarn build:watch\"", + "dev": "concurrently \"yarn preview -l silent\" \"yarn build:watch\"", "build": "vite build", "build:watch": "vite build --watch", "preview": "vite preview", diff --git a/ghost/portal/vite.config.js b/ghost/portal/vite.config.js index 13d94bb080..eb28e3fcc4 100644 --- a/ghost/portal/vite.config.js +++ b/ghost/portal/vite.config.js @@ -19,6 +19,9 @@ export default defineConfig((config) => { 'process.env.NODE_ENV': JSON.stringify(config.mode), REACT_APP_VERSION: JSON.stringify(process.env.npm_package_version) }, + preview: { + port: 4175 + }, server: { port: 5368 },