Skip to content

Commit 28d53f8

Browse files
authored
📦 Generalize the HTTP logger for the myst-cli (#2574)
We overwrite the logs for the remix and react-router, currently there is a difference in how they report that the port is ready. This works for both.
1 parent 88d2136 commit 28d53f8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/sunny-comics-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'myst-cli': patch
3+
---
4+
5+
Generalize the http logger for myst-cli

packages/myst-cli/src/build/site/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function createServerLogger(
1111
const line = data.trim();
1212
if (!line || line.startsWith('>') || line.startsWith('Watching')) return;
1313
if (line.includes('File changed: app/content')) return; // This is shown elsewhere
14-
if (line.includes('started at http://')) {
14+
if (line.includes('http://')) {
1515
const [, ipAndPort] = line.split('http://');
1616
const port = ipAndPort.split(':')[1].replace(/[^0-9]/g, '');
1717
const local = `http://${opts.host}:${port}`;

0 commit comments

Comments
 (0)