Skip to content

Commit f0cb5a3

Browse files
committedApr 4, 2025
Update createServerBanner to use host parameter for endpoint URLs
1 parent 55e2aa4 commit f0cb5a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/utils/cli-styles.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ export function createServerBanner(
143143
port: number,
144144
options: Record<string, any> = {}
145145
): string {
146-
// Create endpoints - keeping it simple regardless of host binding
147146
const endpoints = [
148-
`${styles.url(`http://localhost:${port}`)} - API Root`,
149-
`${styles.url(`http://localhost:${port}/db`)} - Full Database`,
147+
`${styles.url(`http://${host}:${port}`)} - API Root`,
148+
`${styles.url(`http://${host}:${port}/db`)} - Full Database`,
150149
];
151150

152151
const settings = Object.entries(options).map(

0 commit comments

Comments
 (0)