From 1bf12260afad57f83768d040fe3917fb214aaf5f Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Wed, 18 May 2022 11:45:23 -0400 Subject: [PATCH] Fix: update "building for SSR" messaging on SSG (#3399) * fix: update "building for SSR" messaging on SSG * chore: changeset --- .changeset/sour-years-scream.md | 5 +++++ packages/astro/src/core/build/static-build.ts | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/sour-years-scream.md diff --git a/.changeset/sour-years-scream.md b/.changeset/sour-years-scream.md new file mode 100644 index 000000000..d244f9752 --- /dev/null +++ b/.changeset/sour-years-scream.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Update "building for SSR..." log for SSG users to say "building entrypoints for prerendering..." diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 1fac3c00d..2fa7f964c 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -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())}.`));