File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/next/src/build/analyze Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,15 @@ function startServer(dir: string, port: number): Promise<void> {
238238 let addressString
239239 if ( typeof address === 'string' ) {
240240 addressString = address
241+ } else if (
242+ address . family === 'IPv6' &&
243+ ( address . address === '::' || address . address === '::1' )
244+ ) {
245+ addressString = `localhost:${ address . port } `
246+ } else if ( address . family === 'IPv6' ) {
247+ addressString = `[${ address . address } ]:${ address . port } `
241248 } else {
242- addressString = `${ address . address === '::' ? 'localhost' : address . address } :${ address . port } `
249+ addressString = `${ address . address } :${ address . port } `
243250 }
244251
245252 Log . info ( `Bundle analyzer available at http://${ addressString } ` )
You can’t perform that action at this time.
0 commit comments