Skip to content

Commit

Permalink
chore: optimzie variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Aug 26, 2023
1 parent 1e37d9f commit 0d6d59b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/builder/builder-shared/src/prodServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import prodServer, {
Logger,
type ModernServerOptions,
} from '@modern-js/prod-server';
import { logger } from './logger';
import { logger as defaultLogger } from './logger';
import { DEFAULT_PORT } from './constants';
import type {
BuilderContext,
Expand Down Expand Up @@ -35,7 +35,7 @@ export const getServerOptions = (
export async function printServerURLs(
urls: Array<{ url: string; label: string }>,
name = 'Server',
printLogger: Logger = logger,
logger: Logger = defaultLogger,
) {
const { chalk } = await import('@modern-js/utils');
let message = `${name} running at:\n\n`;
Expand All @@ -47,7 +47,7 @@ export async function printServerURLs(
)
.join('');

printLogger.info(message);
logger.info(message);
}

export async function startProdServer(
Expand Down

0 comments on commit 0d6d59b

Please sign in to comment.