Major Changes
-
#11916
46ea29f
Thanks @bluwy! - Updates how thebuild.client
andbuild.server
option values get resolved to match existing documentation. With this fix, the option values will now correctly resolve relative to theoutDir
option. So ifoutDir
is set to./dist/nested/
, then by default:build.client
will resolve to<root>/dist/nested/client/
build.server
will resolve to<root>/dist/nested/server/
Previously the values were incorrectly resolved:
build.client
was resolved to<root>/dist/nested/dist/client/
build.server
was resolved to<root>/dist/nested/dist/server/
If you were relying on the previous build paths, make sure that your project code is updated to the new build paths.
Minor Changes
-
#11875
a8a3d2c
Thanks @florian-lefebvre! - Adds a new propertyisPrerendered
to the globalsAstro
andAPIContext
. This boolean value represents whether or not the current page is prerendered:--- // src/pages/index.astro export const prerender = true; ---
// src/middleware.js export const onRequest = (ctx, next) => { console.log(ctx.isPrerendered); // it will log true return next(); };
Patch Changes
-
#11927
5b4e3ab
Thanks @florian-lefebvre! - Updates theenv
configuration reference docs to include a full API reference forenvField
. -
#11943
fa4671c
Thanks @sarah11918! - Updates error messages that assume content collections are located insrc/content/
with more generic language