0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Fix: update "building for SSR" messaging on SSG (#3399)

* fix: update "building for SSR" messaging on SSG

* chore: changeset
This commit is contained in:
Ben Holmes 2022-05-18 11:45:23 -04:00 committed by GitHub
parent cf8015eaa2
commit 1bf12260af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Update "building for SSR..." log for SSG users to say "building entrypoints for prerendering..."

View file

@ -101,7 +101,13 @@ export async function staticBuild(opts: StaticBuildOptions) {
// Build your project (SSR application code, assets, client JS, etc.)
timer.ssr = performance.now();
info(opts.logging, 'build', 'Building for SSR...');
info(
opts.logging,
'build',
isBuildingToSSR(astroConfig)
? 'Building SSR entrypoints...'
: 'Building entrypoints for prerendering...'
);
const ssrResult = (await ssrBuild(opts, internals, pageInput)) as RollupOutput;
info(opts.logging, 'build', dim(`Completed in ${getTimeStat(timer.ssr, performance.now())}.`));