Fix: update "building for SSR" messaging on SSG (#3399)
* fix: update "building for SSR" messaging on SSG * chore: changeset
This commit is contained in:
parent
cf8015eaa2
commit
1bf12260af
2 changed files with 12 additions and 1 deletions
5
.changeset/sour-years-scream.md
Normal file
5
.changeset/sour-years-scream.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update "building for SSR..." log for SSG users to say "building entrypoints for prerendering..."
|
|
@ -101,7 +101,13 @@ export async function staticBuild(opts: StaticBuildOptions) {
|
||||||
|
|
||||||
// Build your project (SSR application code, assets, client JS, etc.)
|
// Build your project (SSR application code, assets, client JS, etc.)
|
||||||
timer.ssr = performance.now();
|
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;
|
const ssrResult = (await ssrBuild(opts, internals, pageInput)) as RollupOutput;
|
||||||
info(opts.logging, 'build', dim(`Completed in ${getTimeStat(timer.ssr, performance.now())}.`));
|
info(opts.logging, 'build', dim(`Completed in ${getTimeStat(timer.ssr, performance.now())}.`));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue