summaryrefslogtreecommitdiff
path: root/packages/astro/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/src')
-rw-r--r--packages/astro/src/build.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/build.ts b/packages/astro/src/build.ts
index e4c80717f..be9ec8c7b 100644
--- a/packages/astro/src/build.ts
+++ b/packages/astro/src/build.ts
@@ -20,7 +20,7 @@ import { getDistPath, stopTimer } from './build/util.js';
import { debug, defaultLogDestination, error, info, warn, trapWarn } from './logger.js';
import { createRuntime } from './runtime.js';
-const logging: LogOptions = {
+const defaultLogging: LogOptions = {
level: 'debug',
dest: defaultLogDestination,
};
@@ -39,7 +39,7 @@ function isRemote(url: string) {
}
/** The primary build action */
-export async function build(astroConfig: AstroConfig): Promise<0 | 1> {
+export async function build(astroConfig: AstroConfig, logging: LogOptions = defaultLogging): Promise<0 | 1> {
const { projectRoot, astroRoot } = astroConfig;
const dist = new URL(astroConfig.dist + '/', projectRoot);
const pageRoot = new URL('./pages/', astroRoot);