Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed Jun 4, 2023
1 parent 48dc75f commit 1512f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,11 @@ async function generatePath(
onRequest as MiddlewareResponseHandler,
apiContext,
() => {
return renderPage({ mod, renderContext, env, apiContext, isCompressHTMl: settings.config.compressHTML });
return renderPage({ mod, renderContext, env, apiContext, isCompressHTML: settings.config.compressHTML });
}
);
} else {
response = await renderPage({ mod, renderContext, env, apiContext, isCompressHTMl: settings.config.compressHTML });
response = await renderPage({ mod, renderContext, env, apiContext, isCompressHTML: settings.config.compressHTML });
}
} catch (err) {
if (!AstroError.is(err) && !(err as SSRError).id && typeof err === 'object') {
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/src/core/render/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export type RenderPage = {
renderContext: RenderContext;
env: Environment;
apiContext?: APIContext;
isCompressHTMl?: boolean
isCompressHTML?: boolean
};

export async function renderPage({ mod, renderContext, env, apiContext, isCompressHTML = false }: RenderPage) {
Expand Down Expand Up @@ -153,7 +153,7 @@ export async function renderPage({ mod, renderContext, env, apiContext, isCompre
renderContext.props,
null,
env.streaming,
isCompressHTMl,
isCompressHTML,
renderContext.route
);

Expand Down

0 comments on commit 1512f4a

Please sign in to comment.