✨ Major Changes
-
#11916
46ea29fThanks @bluwy! - Updates how thebuild.clientandbuild.serveroption values get resolved to match existing documentation. With this fix, the option values will now correctly resolve relative to theoutDiroption. So ifoutDiris set to./dist/nested/, then by default:build.clientwill resolve to<root>/dist/nested/client/build.serverwill resolve to<root>/dist/nested/server/
Previously the values were incorrectly resolved:
build.clientwas resolved to<root>/dist/nested/dist/client/build.serverwas 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
a8a3d2cThanks @florian-lefebvre! - Adds a new propertyisPrerenderedto the globalsAstroandAPIContext. 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 truereturn next();};
🐞 Patch Changes
-
#11927
5b4e3abThanks @florian-lefebvre! - Updates theenvconfiguration reference docs to include a full API reference forenvField. -
#11943
fa4671cThanks @sarah11918! - Updates error messages that assume content collections are located insrc/content/with more generic language