[ci] format

This commit is contained in:
matthewp 2023-01-03 19:08:59 +00:00 committed by fredkbot
parent dd56c19411
commit 857ae26b2e
3 changed files with 2 additions and 10 deletions

View file

@ -80,11 +80,7 @@ export async function generatePages(opts: StaticBuildOptions, internals: BuildIn
const serverEntry = opts.buildConfig.serverEntry;
const outFolder = ssr ? opts.buildConfig.server : getOutDirWithinCwd(opts.settings.config.outDir);
if (
opts.settings.config.output === 'server' &&
!hasPrerenderedPages(internals)
)
return;
if (opts.settings.config.output === 'server' && !hasPrerenderedPages(internals)) return;
const verb = ssr ? 'prerendering' : 'generating';
info(opts.logging, null, `\n${bgGreen(black(` ${verb} static routes `))}`);

View file

@ -1,5 +1,4 @@
import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark';
import { bold } from 'kleur/colors';
import type {
AstroGlobal,
AstroGlobalPartial,
@ -15,8 +14,6 @@ import { renderJSX } from '../../runtime/server/jsx.js';
import { AstroCookies } from '../cookies/index.js';
import { AstroError, AstroErrorData } from '../errors/index.js';
import { LogOptions, warn } from '../logger/core.js';
import { isScriptRequest } from './script.js';
import { isCSSRequest } from './util.js';
const clientAddressSymbol = Symbol.for('astro.clientAddress');

View file

@ -5,7 +5,6 @@ import { fileURLToPath } from 'node:url';
import type { InlineConfig, ViteDevServer } from 'vite';
import {
AstroConfig,
AstroIntegration,
AstroRenderer,
AstroSettings,
BuildConfig,
@ -15,7 +14,7 @@ import {
import type { SerializedSSRManifest } from '../core/app/types';
import type { PageBuildData } from '../core/build/types';
import { mergeConfig } from '../core/config/config.js';
import { info, LogOptions, warn } from '../core/logger/core.js';
import { info, LogOptions } from '../core/logger/core.js';
async function withTakingALongTimeMsg<T>({
name,