0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Performance improvement in createAstro function (#10765)

This commit is contained in:
Leander Gilles 2024-04-12 08:17:42 +02:00 committed by GitHub
parent d1080ea81d
commit ed2f4aa122
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();