Skip to content

Commit

Permalink
Performance improvement in createAstro function (withastro#10765)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanderG authored and PeterDraex committed Apr 23, 2024
1 parent 9f37f2d commit b9b7900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/astro/src/core/render-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ export class RenderContext {

// `Astro.self` is added by the compiler
const astroGlobalCombined: Omit<AstroGlobal, 'self'> = {
...astroGlobalPartial,
generator: astroGlobalPartial.generator,
glob: astroGlobalPartial.glob,
cookies,
get clientAddress() {
return renderContext.clientAddress();
Expand Down

0 comments on commit b9b7900

Please sign in to comment.