Skip to content

Commit

Permalink
Performance improvement in createAstro function (#10765)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanderG authored Apr 12, 2024
1 parent d1080ea commit ed2f4aa
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 ed2f4aa

Please sign in to comment.