0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

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
This commit is contained in:
Daniel Lockyer 2023-06-02 11:32:13 +02:00
parent b90f8708d3
commit 50618921c6
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

2
.github/dev.js vendored
View file

@ -79,7 +79,7 @@ if (DASH_DASH_ARGS.includes('portal') || DASH_DASH_ARGS.includes('all')) {
prefixColor: 'magenta', prefixColor: 'magenta',
env: {} 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')) { if (DASH_DASH_ARGS.includes('signup') || DASH_DASH_ARGS.includes('all')) {

View file

@ -17,7 +17,7 @@
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
}, },
"scripts": { "scripts": {
"dev": "concurrently \"vite\" \"yarn build:watch\"", "dev": "concurrently \"yarn preview -l silent\" \"yarn build:watch\"",
"build": "vite build", "build": "vite build",
"build:watch": "vite build --watch", "build:watch": "vite build --watch",
"preview": "vite preview", "preview": "vite preview",

View file

@ -19,6 +19,9 @@ export default defineConfig((config) => {
'process.env.NODE_ENV': JSON.stringify(config.mode), 'process.env.NODE_ENV': JSON.stringify(config.mode),
REACT_APP_VERSION: JSON.stringify(process.env.npm_package_version) REACT_APP_VERSION: JSON.stringify(process.env.npm_package_version)
}, },
preview: {
port: 4175
},
server: { server: {
port: 5368 port: 5368
}, },