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 },