mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -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:
parent
b90f8708d3
commit
50618921c6
3 changed files with 5 additions and 2 deletions
2
.github/dev.js
vendored
2
.github/dev.js
vendored
|
@ -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')) {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue