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:
parent
d1080ea81d
commit
ed2f4aa122
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue